Class: PaypalEvent::WebhookController

Inherits:
ActionController::Base
  • Object
show all
Includes:
PayPal::SDK::Core::Logging, PayPal::SDK::REST
Defined in:
app/controllers/paypal_event/webhook_controller.rb

Instance Method Summary collapse

Instance Method Details

#eventObject



12
13
14
15
16
17
18
# File 'app/controllers/paypal_event/webhook_controller.rb', line 12

def event
  PaypalEvent.instrument(PaypalEvent::Util.symbolize_names(verified_event))
  head :ok
rescue StandardError => e
  log_error(e)
  head :bad_request
end