Instantly share code, notes, and snippets.

anonymous /gist:6e2ebfdad8999cd41628 Secret
Created Oct 30, 2014

Embed
What would you like to do?
customer = Stripe::Customer.create(
{:card => params[:stripeToken]
}, ENV['STRIPE_SECRET_KEY']
)
customer_token = Stripe::Token.create(
{:customer => @order.customer_token},
@store_owner.token # user's access token from the Stripe Connect flow
)
customer = Stripe::Customer.create({
:card => customer_token.id,
:plan => @plan_id,
:application_fee_percent => 10 #Percent we take for letting connected accounts use the service
}, @store_owner.token # user's access token from the Stripe Connect flow
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment