在 Stripe 中从 API 创建并验证 Express 帐户
Create and validate Express account from API in Stripe
当我从仪表板添加一个 Express 帐户时,它被创建为启用,准备测试,但是当我想从 API 创建一个帐户时,我无法激活它,我是什么做错了吗?谢谢!
new AccountService().Create(new AccountCreateOptions
{
Email = email,
Country = "US",
Type = "express",
BusinessType = "individual",
Individual = new AccountIndividualOptions
{
Phone = phone,
FirstName = name,
LastName = name,
Dob = new DobOptions
{
Day = 1,
Month = 1,
Year = 2000
},
SsnLast4 = ssnLast4, // "0000"
Verification = new AccountIndividualVerificationOptions
{
Document = new AccountIndividualVerificationDocumentOptions
{
Back = CreateFile(formFile).Id, //success.png
Front = CreateFile(formFile).Id //success.png
}
}
},
BusinessProfile = new AccountBusinessProfileOptions
{
ProductDescription = "A dummy description"
},
ExternalAccount = new AnyOf<string, AccountBankAccountOptions, AccountCardOptions>(new AccountBankAccountOptions
{
Country = "US",
Currency = "usd",
AccountHolderName = name,
RoutingNumber = "110000000",
AccountNumber = "000123456789",
AccountHolderType = "individual"
}),
TosAcceptance = new AccountTosAcceptanceOptions
{
ServiceAgreement = "full"
},
Capabilities = new AccountCapabilitiesOptions
{
Transfers = new AccountCapabilitiesTransfersOptions
{
Requested = true
},
},
});
Stripe 帐户的所有者必须先接受 Stripe 的服务条款,然后才能激活该帐户。这里最好的选择是让他们在收集完所有信息后通过 Connect Onboarding:https://stripe.com/docs/connect/connect-onboarding
它说的是自定义帐户,但它现在适用于所有类型,只会让您的客户“认领”他们的帐户并将其与电子邮件地址和 phone 号码相关联并接受服务条款。
当我从仪表板添加一个 Express 帐户时,它被创建为启用,准备测试,但是当我想从 API 创建一个帐户时,我无法激活它,我是什么做错了吗?谢谢!
new AccountService().Create(new AccountCreateOptions
{
Email = email,
Country = "US",
Type = "express",
BusinessType = "individual",
Individual = new AccountIndividualOptions
{
Phone = phone,
FirstName = name,
LastName = name,
Dob = new DobOptions
{
Day = 1,
Month = 1,
Year = 2000
},
SsnLast4 = ssnLast4, // "0000"
Verification = new AccountIndividualVerificationOptions
{
Document = new AccountIndividualVerificationDocumentOptions
{
Back = CreateFile(formFile).Id, //success.png
Front = CreateFile(formFile).Id //success.png
}
}
},
BusinessProfile = new AccountBusinessProfileOptions
{
ProductDescription = "A dummy description"
},
ExternalAccount = new AnyOf<string, AccountBankAccountOptions, AccountCardOptions>(new AccountBankAccountOptions
{
Country = "US",
Currency = "usd",
AccountHolderName = name,
RoutingNumber = "110000000",
AccountNumber = "000123456789",
AccountHolderType = "individual"
}),
TosAcceptance = new AccountTosAcceptanceOptions
{
ServiceAgreement = "full"
},
Capabilities = new AccountCapabilitiesOptions
{
Transfers = new AccountCapabilitiesTransfersOptions
{
Requested = true
},
},
});
Stripe 帐户的所有者必须先接受 Stripe 的服务条款,然后才能激活该帐户。这里最好的选择是让他们在收集完所有信息后通过 Connect Onboarding:https://stripe.com/docs/connect/connect-onboarding
它说的是自定义帐户,但它现在适用于所有类型,只会让您的客户“认领”他们的帐户并将其与电子邮件地址和 phone 号码相关联并接受服务条款。