条带化创建支出出现错误 "Sorry, you don't have any external accounts in that currency (usd)"
stripe create payout getting error "Sorry, you don't have any external accounts in that currency (usd)"
我正在处理创建支出,而 运行 我收到错误代码
Sorry, you don't have any external accounts in that currency (usd)
首先我创建了客户,然后我创建了银行账户,然后我进行了付款,谁能帮我解决这个问题,这是我的代码
<?php
require_once('init.php');
\Stripe\Stripe::setApiKey("*************");
$customer = \Stripe\Customer::create(array(
"description" => "Customer for payout"
));
$customer_id = $customer->id;
$customer = \Stripe\Customer::retrieve($customer_id);
$bank_data = \Stripe\Token::create(array(
"bank_account" => array(
"country" => "US",
"currency" => "usd",
"account_holder_name" => "Charlotte Thomas",
"account_holder_type" => "individual",
"routing_number" => "110000000",
"account_number" => "000123456789"
)
));
$bank_token = $bank_data->id;
$bank_account = $customer->sources->create(array("source" => $bank_token));
$payout_data = \Stripe\Payout::create(array(
"amount" => 100,
"currency" => "usd",
));
echo "<pre>";
print_r($payout_data);
die;
?>
您正在将银行帐户添加为 来源 到 customer object, i.e. for ACH payments。
对于付款,如果这是您自己的 Stripe 帐户,您需要在 https://dashboard.stripe.com/account/payouts 的仪表板中输入您的银行帐户详细信息。如果您希望能够通过 API.
创建付款,您还需要将付款时间表设置为 "Manual"
另请注意,创建费用时,资金不会立即可用,因此您无法在创建费用后立即创建付款。您可以在 https://stripe.com/docs/payouts.
的 Stripe 文档中阅读所有关于支付的信息
我正在处理创建支出,而 运行 我收到错误代码
Sorry, you don't have any external accounts in that currency (usd)
首先我创建了客户,然后我创建了银行账户,然后我进行了付款,谁能帮我解决这个问题,这是我的代码
<?php
require_once('init.php');
\Stripe\Stripe::setApiKey("*************");
$customer = \Stripe\Customer::create(array(
"description" => "Customer for payout"
));
$customer_id = $customer->id;
$customer = \Stripe\Customer::retrieve($customer_id);
$bank_data = \Stripe\Token::create(array(
"bank_account" => array(
"country" => "US",
"currency" => "usd",
"account_holder_name" => "Charlotte Thomas",
"account_holder_type" => "individual",
"routing_number" => "110000000",
"account_number" => "000123456789"
)
));
$bank_token = $bank_data->id;
$bank_account = $customer->sources->create(array("source" => $bank_token));
$payout_data = \Stripe\Payout::create(array(
"amount" => 100,
"currency" => "usd",
));
echo "<pre>";
print_r($payout_data);
die;
?>
您正在将银行帐户添加为 来源 到 customer object, i.e. for ACH payments。
对于付款,如果这是您自己的 Stripe 帐户,您需要在 https://dashboard.stripe.com/account/payouts 的仪表板中输入您的银行帐户详细信息。如果您希望能够通过 API.
创建付款,您还需要将付款时间表设置为 "Manual"另请注意,创建费用时,资金不会立即可用,因此您无法在创建费用后立即创建付款。您可以在 https://stripe.com/docs/payouts.
的 Stripe 文档中阅读所有关于支付的信息