【发布时间】:2018-11-24 04:08:36
【问题描述】:
我正在使用条带 php 库。
这是我的代码:
$account = \Stripe\Account::create(
array(
"country" => "US",
"managed" => true,
"legal_entity" => array(
'address' => array(
'city' => 'Maxico',
'country' => 'US',
"line1" => 'H65',
"line2" => 'standfort street',
"postal_code" => '90046',
"state" => 'CA'
),
'business_name' => 'test business name',
'business_tax_id' => '000000000',
'dob' => array(
'day' => '10',
'month' => '01',
'year' => '1988'
),
'first_name' => 'Test',
'last_name' => 'Tester',
'personal_id_number' => '000000000',
'ssn_last_4' => '0000',
'type' => 'sole_prop'
),
'tos_acceptance' => array(
'date' => time(),
'ip' => $_SERVER['REMOTE_ADDR']
),
'external_account' => array(
"country" => "US",
"currency" => "usd",
"account_holder_name" => 'Jane Austen',
"account_holder_type" => 'individual',
"routing_number" => "111000025",
"account_number" => "000123456789"
)
)
);
这是我得到的错误:
external_account 哈希必须包含一个“对象”键,指示要创建的 external_account 类型。
任何建议将不胜感激。
【问题讨论】:
-
Account::create 响应将包含
external_accounts,为什么要在其中添加? -
Stripe 需要所有详细信息以进行验证。 external_account 用于银行账户转账。如果我不提供,则不会启用转移。
标签: php stripe-payments