Skip to content

Instantly share code, notes, and snippets.

@mediocretes
Created January 29, 2013 21:48
Show Gist options
  • Save mediocretes/4668238 to your computer and use it in GitHub Desktop.
Save mediocretes/4668238 to your computer and use it in GitHub Desktop.
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