public
Created

  • Download Gist
customers_controller.rb
Ruby
1 2 3 4 5 6 7 8 9
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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.