首页 文章

使用PayumStripeBundle进行条带连接付款

提问于
浏览
0

我有一个Stripe帐户已经有一个平台 . 它已经完成了OAuth,Api返回我 access_token 等 . 我的问题是.Payum捆绑使用stripe.js付款或条纹结账,但使用Stripe 's Platform is different.How can I make payment through Stripe'使用PayumBundle平台付款(I需要PayumBundle) . ?这是一个简单的文档

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

这是什么 TOKEN ?它是当前的交易令牌还是OAuth在连接期间给我的令牌?

1 回答

  • 0

    令牌是来自Stripe.js / Stripe Checkout的令牌 . Source是要收费的信用卡/付款方式,因此它是来自Stripe.js / Checkout的令牌 .

    Connected_Stripe_Account_ID是您从oAuth连接获取的stripe_user_id /帐户ID

相关问题