Skip to content

Instantly share code, notes, and snippets.

Created November 25, 2014 05:59
Show Gist options
  • Save anonymous/995f1aa53aabbc9b284b to your computer and use it in GitHub Desktop.
Save anonymous/995f1aa53aabbc9b284b to your computer and use it in GitHub Desktop.
Stripe Connect -Shared Customers
Stripe.api_key = 'Application's Owner Secret Key'
@charge = Stripe::Charge.create(
{
:amount => 2000,
:currency => "usd",
:customer => 'Stripe Customer Id store on Application's Owner Account',
:card => 'Stripe CreditCard Id store on Application's Owner Account',
:description => "Charge for Invoice",
:application_fee => 100
},
'USER ACCESS_TOKEN' # I am charging on behalf
)
#I am getting this error
#<Stripe::InvalidRequestError: (Status 400) No such customer: cus_5D0BEhEBqcQRxm>
@appsgenii
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment