【发布时间】:2019-09-27 03:31:27
【问题描述】:
我已经集成了条带连接支付流程。我向管理员帐户收费,它工作正常,但连接帐户返回余额不足错误
$payableAmount = $payableAmount * 100;
//Stripe admin account charge process
$charge = \Stripe\Charge::create(array(
"amount" => 100, // $15.00 this time
"currency" => 'GBP',
"customer" => $stripeDetails['stripe_customer_id']
));
//charge working fine (In Dashboard currency converted GBP to UD)
$splitAmount = 100 * 2 / 100;
$splitAmount = 90 - $splitAmount;
$transfer = \Stripe\Transfer::create(array(
'amount' => $splitAmount * 100,
'currency' => 'GBP',
'destination' => $storeData['stripe_account_id']
));
//transfer return Insufficient funds in Stripe account. In test mode, you can add funds to your available balance.
【问题讨论】:
-
所以你已经收取了 100 的费用,但要转移 8800?
-
不,我只为正常工作的管理员帐户收取了 100 英镑。我将在管理仪表板中检查货币货币是英镑兑美元。然后像我使用英镑货币一样转移过程它返回的余额不足..你能解决这个问题吗?帮帮我..我在上面的代码中做错了什么..
-
很简单,你账户里没有8800可以转账,因为你一次只收100。您必须至少运行该脚本 88 次才能使帐户有足够的资金。
标签: php stripe-payments payment