Class: Pay::Webhooks::BraintreeController

Inherits:
ApplicationController show all
Defined in:
app/controllers/pay/webhooks/braintree_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



8
9
10
11
12
13
# File 'app/controllers/pay/webhooks/braintree_controller.rb', line 8

def create
  queue_event(verified_event)
  head :ok
rescue ::Braintree::InvalidSignature
  head :bad_request
end