Created
January 29, 2013 21:48
-
-
Save mediocretes/4668238 to your computer and use it in GitHub Desktop.
Verifying BrainTree webhooks with ruby
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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