gpt4 book ai didi

php - Stripe API 帐户受到限制

转载 作者:行者123 更新时间:2023-12-04 08:34:00 26 4
gpt4 key购买 nike

我正在使用 php stripe API 使用以下代码创建一个帐户,

$account = \Stripe\Account::create(array(
"type" => "custom",
"country" => "GB",
"email" => 'devetest@gmail.com',
'capabilities' => [
'card_payments' => ['requested' => true],
'transfers' => ['requested' => true],
]
));
帐户已创建,但显示 受限 请检查图像,
enter image description here
您能否建议如何使用 php Stripe API 清除这些警告(不使用 Stripe 仪表板) ,我是否遗漏了任何我对 Stripe API 不熟悉的东西,我检查了 Stripe API 文档,但无法解决这个问题。

最佳答案

API 对象有一个 requirements准确描述需要什么信息的字段。您可以通过调用帐户更新 API 来提供它。详细描述在
https://stripe.com/docs/connect/identity-verification-api .例如你可能有一个 requirements像这样的字段:

requirements: {
current_deadline: null,
currently_due: [
"business_profile.mcc",
"business_profile.url",
"business_type",
"external_account",
"relationship.representative",
"tos_acceptance.date",
"tos_acceptance.ip"
],
disabled_reason: "requirements.past_due",
errors: [],
eventually_due: [
"business_profile.mcc",
"business_profile.url",
"business_type",
"external_account",
"relationship.representative",
"tos_acceptance.date",
"tos_acceptance.ip"
],
past_due: [
"business_profile.mcc",
"business_profile.url",
"business_type",
"external_account",
"relationship.representative",
"tos_acceptance.date",
"tos_acceptance.ip"
],
pending_verification: []
},
因此,例如,您将清除其中的一些(让我们以“business_profile.mcc”为例,调用 Accounts Update 像这样
\Stripe\Account::update($account->id, array(
"business_profile" => array(
"mcc" => "5942" // https://stripe.com/docs/connect/setting-mcc#list
)
))
https://stripe.com/docs/api/accounts/update#update_account-business_profile

总体而言,除非您特别打算自己对帐户登录和 KYC 信息收集进行白标,否则它是 更容易集成 Express accounts (Stripe 为您收集信息的地方),或使用 Connect Onboarding对于自定义帐户,您只需传入一个帐户 ID,Stripe 就会为您提供一个指向帐户持有人可以访问的页面的链接,以提供任何所需的信息。

关于php - Stripe API 帐户受到限制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64891580/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com