public
Created

Verifying BrainTree webhooks with ruby

  • Download Gist
gistfile1.rb
Ruby
1 2 3 4 5 6 7
def verify
if params[:bt_challenge]
render :text => Braintree::WebhookNotification.verify(params[:bt_challenge])
else
head :unprocessable_entity
end
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.