【发布时间】:2021-08-04 18:21:48
【问题描述】:
当我从仪表板添加一个 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
},
},
});
【问题讨论】:
标签: c# stripe-payments