Create a gist now

Instantly share code, notes, and snippets.

Verifying BrainTree webhooks with ruby
def verify
if params[:bt_challenge]
render :text => Braintree::WebhookNotification.verify(params[:bt_challenge])
else
head :unprocessable_entity
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment