如何使用stripe.net设置ach传输
本文关键字:ach 传输 设置 net 何使用 stripe | 更新日期: 2023-09-27 17:59:36
我知道你必须创建一个客户并验证一个银行账户,但我不知道如何做到后者。
我该如何在客户身上进行验证?
要向客户添加银行账户,您需要创建一个令牌并将其添加到sourceToken参数中,因为到目前为止还没有实现使用银行账户服务进行添加。例如:
BankAccountCreateOptions bankAccount = new BankAccountCreateOptions();
bankAccount.SourceBankAccount = new SourceBankAccount() {
AccountHolderName = accountHolderName,
AccountHolderType = "company",
AccountNumber = bankAccountNumber,
BankName = bankName,
Country = "US",
Currency = "usd",
RoutingNumber = bankAccountRoutingNumber
};
// Setup the customer
StripeCustomerCreateOptions options = new StripeCustomerCreateOptions();
options.Email = email;
options.Description = company;
options.PlanId = plan.Id;
options.TrialEnd = DateTime.UtcNow.AddMonths(1);
options.SourceToken = bankAccount.SourceToken;
// Create the customer
StripeCustomer customer = new StripeCustomerService().Create(options);
然而,我仍然不知道如何验证创建后的银行帐户。
您可以使用中的测试用户登录银行帐户https://plaid.com/docs/api/#sandbox并将用户注册为条带ACH。使用测试用户银行详细信息创建令牌,并为用户创建一个客户。使用创建的客户id进行收费。