条带账户资金不足
Insufficient fund in stripe account
我的 stripe 账户在测试模式下有以下余额:
8,395.72
Available balance
,659.48
Pending balance
,010,474.35
Total volume (HKD)
此余额为港元。
现在我必须用美元转账。
如果我尝试 转账 4.25 美元,则会出现以下错误:
Type: Stripe\Error\InvalidRequest
Message: Insufficient funds in Stripe account. In test mode, you can
add funds to your available balance (bypassing your pending balance)
by creating a charge with 4000 0000 0000 0077 as the card number. You
can use the the /v1/balance endpoint to view your Stripe balance (for
more details, see stripe.com/docs/api#balance).
转账代码:
$check_balnace = \Stripe\Balance::retrieve();
$balanceArr = $check_balnace->__toArray(true);
$available_amount = $balanceArr['available']['0']['amount'];
echo $available_amount; // 8,395.72
$amount = 4.25*100;
$amount = 425;
\Stripe\Transfer::create(array("amount" => $amount, "currency" => "usd", "destination" => 'stripr_uid', "description" => 'test'));
为什么即使我有足够的余额也会出现此错误?
您的 Stripe 账户只有一个港币银行账户,因此只有港币余额。您无法创建美元转账,因为您的账户没有美元余额。
为了让您的帐户有美元余额,您需要 link 一个美元银行帐户。但是,目前 HK Stripe 账户只能有港币银行账户,如前所述here。
\Stripe\Stripe::setApiKey("sk_test_vKA2W1UsnAfPfDsA1dfdK04n3dfr6");
\Stripe\Charge::create(array(
'currency' => 'USD',
'amount' => 10000,
'card' => 4000000000000077
));
您可以使用此代码并为您的测试帐户添加余额以进行转账操作。
您还可以做一件事来为您的测试账户添加资金。
只需登录您的 stripe 帐户并转到 Payments
并单击 Create your first payment
或 new payment
按钮。
当你点击它时,你会看到一个弹出窗口 window 打开,你可以在这里填写你的金额。
只记得使用卡号:4000000000000077
然后点击 Create payment
按钮。
您的付款将直接添加(绕过待处理状态),您可以使用您的条带测试帐户进行转账。
如果您遇到“资金不足”错误,您可以使用以下卡号在测试模式下转帐。
卡号:4000000000000077
我的 stripe 账户在测试模式下有以下余额:
8,395.72
Available balance
,659.48
Pending balance
,010,474.35
Total volume (HKD)
此余额为港元。
现在我必须用美元转账。
如果我尝试 转账 4.25 美元,则会出现以下错误:
Type: Stripe\Error\InvalidRequest
Message: Insufficient funds in Stripe account. In test mode, you can add funds to your available balance (bypassing your pending balance) by creating a charge with 4000 0000 0000 0077 as the card number. You can use the the /v1/balance endpoint to view your Stripe balance (for more details, see stripe.com/docs/api#balance).
转账代码:
$check_balnace = \Stripe\Balance::retrieve();
$balanceArr = $check_balnace->__toArray(true);
$available_amount = $balanceArr['available']['0']['amount'];
echo $available_amount; // 8,395.72
$amount = 4.25*100;
$amount = 425;
\Stripe\Transfer::create(array("amount" => $amount, "currency" => "usd", "destination" => 'stripr_uid', "description" => 'test'));
为什么即使我有足够的余额也会出现此错误?
您的 Stripe 账户只有一个港币银行账户,因此只有港币余额。您无法创建美元转账,因为您的账户没有美元余额。
为了让您的帐户有美元余额,您需要 link 一个美元银行帐户。但是,目前 HK Stripe 账户只能有港币银行账户,如前所述here。
\Stripe\Stripe::setApiKey("sk_test_vKA2W1UsnAfPfDsA1dfdK04n3dfr6");
\Stripe\Charge::create(array(
'currency' => 'USD',
'amount' => 10000,
'card' => 4000000000000077
));
您可以使用此代码并为您的测试帐户添加余额以进行转账操作。
您还可以做一件事来为您的测试账户添加资金。
只需登录您的 stripe 帐户并转到 Payments
并单击 Create your first payment
或 new payment
按钮。
当你点击它时,你会看到一个弹出窗口 window 打开,你可以在这里填写你的金额。
只记得使用卡号:4000000000000077
然后点击 Create payment
按钮。
您的付款将直接添加(绕过待处理状态),您可以使用您的条带测试帐户进行转账。
如果您遇到“资金不足”错误,您可以使用以下卡号在测试模式下转帐。 卡号:4000000000000077