【发布时间】:2016-09-11 00:24:29
【问题描述】:
尝试使用托管帐户进行付款。基本上,向用户收费,并将钱发送到托管账户而不是平台账户。我正在使用“共享客户”我正在使用此链接底部的代码https://stripe.com/docs/connect/shared-customers。检索令牌后,我尝试进行单次收费,但出现“未找到卡信息”的错误消息,但在创建令牌时我传递了 cardId
错误:message: "Could not find payment information"
Stripe.tokens.create(
{ customer: request.params.customerId, card: request.params.cardId },
{ stripe_account: 'acct_xyz' }, // id of the connected account
function(err, token) {
Stripe.charges.create(
{
amount: 1000, // amount in cents
currency: "usd",
source: token,
description: "Example charge",
application_fee: 123 // amount in cents
},
function(err, charge) {
console.log(err);
});
});
【问题讨论】:
标签: javascript stripe-payments stripe-connect