简体   繁体   English

条纹创建支付获取错误“抱歉,您没有该货币的任何外部帐户(usd)”

[英]stripe create payout getting error “Sorry, you don't have any external accounts in that currency (usd)”

I am working on create payout, while run the code i am getting error 我正在努力创建支付,而运行代码我收到错误

Sorry, you don't have any external accounts in that currency (usd)

first i am creating the customer, and then i am creating the bank account, and after then i am doing the payout, can anyone please help me how can i resolve this issue, here is my code 首先我创建了客户,然后我创建了银行账户,之后我正在做支付,任何人都可以帮助我如何解决这个问题,这是我的代码

<?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;


?>

You're adding a bank account as a payment source to a customer object , ie for ACH payments . 您将银行帐户添加为客户对象的付款来源 ,即ACH付款

For payouts, if this is your own Stripe account, you need to enter your bank account details in your dashboard at https://dashboard.stripe.com/account/payouts . 对于付款,如果这是您自己的Stripe帐户,则需要在信息中心的https://dashboard.stripe.com/account/payouts中输入您的银行帐户详细信息。 You'll also need to set your payout schedule to "Manual" if you want to be able to create payouts via the API. 如果您希望能够通过API创建付款,还需要将付款时间表设置为“手动”。

Also note that when creating charges, funds are not immediately available, so you will not be able to create a payout immediately after creating a charge. 另请注意,在创建费用时,资金不会立即可用,因此您无法在创建费用后立即创建付款。 You can read all about payouts in Stripe's documentation at https://stripe.com/docs/payouts . 您可以在https://stripe.com/docs/payouts上阅读Stripe文档中有关付款的所有信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法使用php v3库创建或更新帖子。((403)很抱歉,您无权访问此资源。 - Cannot create or update posts using php v3 library ((403) We're sorry, but you don't have permission to access this resource.') Laravel 收到 403 Forbidden 错误“您无权访问此资源。” - Laravel getting 403 Forbidden error “You don't have permission to access this resource.” 没有这样的外部帐户,我的 Stripe Payout 无法使用 php 工作? - No such external account and my Stripe Payout not working using php? 为您无权访问的网站创建移动网站 - Create Mobile Site for a site you don't have access to 我收到的邮件被退回,但我没有从我没有的电子邮件帐户发送来的邮件……这可能是我的脚本被黑客入侵了吗? - I am getting bounced mails which I have not sent from email accounts I don't have … Can this be a hack into my script? 如何重新爱您没有权限访问此服务器上的/ &lt;...错误 - how to reslove You don't have permission to access /< on this server…error 迁移和错误:禁止您无权访问此服务器上的/ - Migration and Error: Forbidden You don't have permission to access / on this server 条纹-手动付款 - Stripe - Manual payout 汇率USD转换为INR - currency conversion USD to INR 得到“禁止您无权访问此资源。 ” 对于特定路线 - getting “Forbidden You don't have permission to access this resource. ” for a particular route
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM