首页 > 解决方案 > 我已经集成了条带连接支付流程。我向管理员帐户收费,它工作正常,但连接帐户返回余额不足错误

问题描述

我已经集成了条带连接支付流程。我向管理员帐户收费,它工作正常,但连接帐户返回余额不足错误

$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.

标签: phpstripe-paymentspayment

解决方案


您已向客户收取 1 英镑的费用,Stripe 接受amount最低货币价值,在本例中为 100 便士。然后,您尝试将 88 英镑转入您只有 1 英镑可用的关联帐户。

您应该重新审视您的逻辑,因为无论您向客户收取多少费用$splitAmount,它总是等于。88


推荐阅读