C# 从条带中的API创建并验证Express帐户
当我从仪表板添加一个Express帐户时,它已被创建并启用,准备进行测试,但是当我想从API创建一个帐户时,我无法激活它,我做错了什么?谢谢C# 从条带中的API创建并验证Express帐户,c#,stripe-payments,C#,Stripe Payments,当我从仪表板添加一个Express帐户时,它已被创建并启用,准备进行测试,但是当我想从API创建一个帐户时,我无法激活它,我做错了什么?谢谢 new AccountService().Create(new AccountCreateOptions { Email = email, Country = "US", Type = "express", BusinessType = "individual",
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
},
},
});
new AccountService().Create(新AccountCreateOptions
{
电子邮件=电子邮件,
Country=“美国”,
Type=“express”,
BusinessType=“个人”,
个人=新帐户个人选项
{
电话,
FirstName=name,
LastName=name,
Dob=新的Dob选项
{
天=1,
月份=1,
年份=2000年
},
SsnLast4=SsnLast4,//“0000”
验证=新帐户IndividualVerificationOptions
{
文档=新帐户IndividualVerificationDocumentOptions
{
Back=CreateFile(formFile).Id,//success.png
Front=CreateFile(formFile).Id//success.png
}
}
},
BusinessProfile=新帐户BusinessProfile选项
{
ProductDescription=“虚拟描述”
},
ExternalAccount=new AnyOf(新帐户BankAccountOptions
{
Country=“美国”,
货币=“美元”,
AccountHolderName=名称,
RoutingNumber=“110000000”,
AccountNumber=“000123456789”,
AccountHolderType=“个人”
}),
TosAcceptance=新帐户TosAcceptance选项
{
ServiceAgreement=“完整”
},
能力=新的责任能力选项
{
转账=新的AccountabilitieTransfersOptions
{
请求=真
},
},
});
在激活该帐户之前,Stripe帐户的所有者必须接受Stripe的服务条款。这里的最佳选择是,在您收集所有信息后,让他们通过Connect Onboard: 它说的是自定义帐户,但它现在适用于所有类型,只会让您的客户“申请”他们的帐户,并将其与电子邮件地址和电话号码关联,然后接受ToS