我想在 stripe 中创建自定义帐户,以便我可以通过自己的平台对其进行管理。我在 Stripe 上创建了平台。为此,我正在使用 stripe.Net。我已经使用此代码创建了多个帐户:
var account = new StripeAccountCreateOptions
{
Email = customer.Email,
Managed = true,
Country = customer.Country.ToString(),
BusinessName = customer.BussinessName,
BusinessUrl = customer.BussinessUrl,
LegalEntity = new StripeAccountLegalEntityOptions()
{
FirstName = "imran",
LastName = "shahid",
BirthDay = 20,
BirthMonth = 3,
BirthYear = 1993,
Type = "individual",
AddressCity = "new york",
AddressPostalCode = "12345",
AddressLine1 = "kalma chok",
AddressState = "new york",
SSNLast4 = "5467",
PersonalIdNumber = "127.0.0.1"
},
TosAcceptanceDate = DateTime.Today,
TosAcceptanceIp = "127.0.0.1",
ExternalCardAccount = new StripeAccountCardOptions()
{
AddressCity = "abc",
AddressCountry = "US",
Currency = "usd",
Number = "4000056655665556",
ExpirationYear = "2020",
ExpirationMonth = "03",
Cvc = "123"
},
};
var accountService = new StripeAccountService();
StripeAccount response = accountService.Create(account);
但是当我访问网站时,所有帐户都未经验证。
我正在使用此代码进行付款
var myCharge = new StripeChargeCreateOptions
{
Amount = 1000,
Currency = "usd",
Description = "Charge it like it's hot",
SourceTokenOrExistingSourceId = "*SourceTokenOrExistingSourceId*",
ApplicationFee = 25,
Capture = true
};
var chargeService = new StripeChargeService();
StripeCharge stripeCharge = chargeService.Create(myCharge);
如何获取SourceTokenOrExistingSourceId?实际上我想从一个客户那里扣款然后转账到我的账户,然后我也想从我的账户转账到客户的账户。为此,我没有得到适当的教程或任何示例代码。你能帮我吗?我只想做三件事
1) 创建经过验证的管理帐户
2) 向客户收费(自定义账户)
3) 转账给客户(自定义账户)
最佳答案
我认为您的主要问题可能是您没有上传验证文件(以及某种形式的照片 ID 的相关 png/jpeg)
我自己也在为此苦苦挣扎。
告诉您需要什么的最佳方式是在仪表板中使用一个未经验证的帐户,它会有一个黄色警告框,说明付款已禁用或类似信息。点击“编辑”,它会为您提供当前需要的信息列表。
其中大部分属于您已经完成的 Legal_Entity 类别。
祝你好运,让我知道进展如何!
关于c# - 如何创建托管账户并从托管账户转账?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44404302/