如何解决设置 data.account 时,条纹扩展 BankAccountListOptions 中的 Account 对象不起作用
我正在使用 Stripe.Net 获取客户的银行账户。但是,尽管 data.account
按如下方式传递给 Expand 属性,但帐户对象为空。
var serviceb = new BankAccountService();
var opts = new BankAccountListOptions {
Expand = new List<string> {
"data.account"
}
};
var lst = await serviceb.ListAsync(customerId,opts);
var firstBankAccount = lst.First();
firstBankAccount.Account
和 firstBankAccount.AccountId
为空,我无法弄清楚出了什么问题。
注意:我已在沙盒模式下通过 Plaid Link stripe_bank_access_token
关联客户的银行帐户。另外,我在测试模式下使用 Stripe。
var options = new CustomerCreateOptions
{
Description = "User",Source = Source,// a tok_* which provided by Plaid through `PLAID/processor/stripe/bank_account_token/create` API
Email = "a@a.com"
};
var service = new CustomerService();
await service.CreateAsync(options);
这是使用上述代码在 Stripe 上创建的银行账户和客户。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。