Skip to content

Instantly share code, notes, and snippets.

@knewter
Created February 28, 2012 18:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save knewter/1934012 to your computer and use it in GitHub Desktop.
Save knewter/1934012 to your computer and use it in GitHub Desktop.
def braintree_create
result = Braintree::TransparentRedirect.confirm(request.query_string)
customer = IsotopeSubscriptions.customer_create.call(customer_hash(result.customer))
if customer
redirect_to customer_path(customer)
else
render action: 'new'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment