Stripe payments 不能多次使用条带标记-条带
我正试图从连接帐户的客户那里接管 我有此错误Stripe payments 不能多次使用条带标记-条带,stripe-payments,stripe-connect,stripe.js,Stripe Payments,Stripe Connect,Stripe.js,我正试图从连接帐户的客户那里接管 我有此错误不能多次使用条带标记 这是我的代码: $customer = \Stripe\Customer::create(array( "email" => $customer_email, "source" => $token, ), array("stripe_account" => $stripe_connected_account) ); $charge = \Stripe\Charge::create(array( "a
不能多次使用条带标记
这是我的代码:
$customer = \Stripe\Customer::create(array(
"email" => $customer_email,
"source" => $token,
),
array("stripe_account" => $stripe_connected_account)
);
$charge = \Stripe\Charge::create(array(
"amount" => $the_fix_fee_convert,
"currency" => "eur",
"source" => $token,
"description" => "Charge for subscription"
));
我尝试使用customer
代替source
:
$charge = \Stripe\Charge::create(array(
"amount" => $the_fix_fee_convert,
"currency" => "eur",
"customer" => $customer->id,
"description" => "Charge for subscription"
));
但是Stripe找不到客户->id
,因为它来自$Stripe\u connected\u帐户
我也试过:
$charge = \Stripe\Charge::create(array(
"amount" => $the_fix_fee_convert,
"currency" => "eur",
"customer" => $customer->id,
"description" => "Charge for subscription"
),
array("stripe_account" => $stripe_connected_account)
);
它可以工作,但费用在连接帐户上转移,而不是在应用程序帐户上转移
对此有何想法?出现错误
不能多次使用条带令牌
,因为您使用单个令牌创建费用,然后创建客户。如果您想对联网帐户收费,但在平台上获得付款,则必须设置。你能澄清你所说的“它可以工作,但费用是在连接帐户上而不是在应用程序帐户上转移的”是什么意思吗?@henry我想在平台的客户帐户上收费,而不是在连接帐户上收费。你不能在平台帐户上向连接帐户的客户收费。我会花一些时间阅读连接文档,尤其是您是否希望对同一客户的连接帐户和应用程序帐户同时收费???我认为这会对您有所帮助错误不能多次使用条带令牌,因为您使用单个令牌创建费用,然后创建客户。如果您想对联网帐户收费,但在平台上获得付款,则必须设置。你能澄清你所说的“它可以工作,但费用是在连接帐户上而不是在应用程序帐户上转移的”是什么意思吗?@henry我想在平台的客户帐户上收费,而不是在连接帐户上收费。你不能在平台帐户上向连接帐户的客户收费。我会花一些时间阅读连接文档,尤其是你想为连接帐户和应用程序帐户向同一客户收费吗???我想这会对你有所帮助