我正在使用Stripe和php创建一个项目。我正在整合分条并将金额转移到卡上。我正在遵循分条的官方文件并出现一些错误
$payout = \Stripe\Payout::create([
'amount' => 1000,
'currency' => 'usd',
'method' => 'instant',
'destination' => 'card_xyz',
]);
获取错误:
No such external account: 19173966
答案 0 :(得分:0)
您需要在请求中包括 source_type 。查看该帐户是否已经存在。
$payout = \Stripe\Payout::create([
'amount' => 1000,
'currency' => 'usd',
'method' => 'instant',
'destination' => 'card_xyz',
'source_type' => 'card',
]);