0
votes

I have a Stripe account which already has a platform.It's already done with OAuth and the Api returns me access_token etc.My question is.Payum bundle makes payment with stripe.js or stripe checkout but payment with Stripe's Platform is different.How can I make payment through Stripe's Platform with PayumBundle (I need PayumBundle).?Here is a simple doc

\Stripe\Stripe::setApiKey(PLATFORM_SECRET_KEY);
\Stripe\Charge::create(array(
  'amount' => 1000,
  'currency' => 'usd',
  'source' => {TOKEN},
  'destination' => {CONNECTED_STRIPE_ACCOUNT_ID}
));

what TOKEN is this? Is it a current transaction token or the token which OAuth has given me during connection?

1

1 Answers

0
votes

Token is the token from Stripe.js / Stripe Checkout. Source is the credit card / payment method to charge, hence it is the token from Stripe.js/Checkout.

Connected_Stripe_Account_ID is the stripe_user_id / account id you obtained from the oAuth connection