【发布时间】:2019-03-20 17:35:22
【问题描述】:
让 Stripe 快速启动并运行,并设置我的表单以包含账单地址。但似乎找不到任何方法将其存储在条带中,使用 .net sdk。
如果我转到条带仪表板,我可以手动输入客户的帐单地址。
我的工作代码如下所示:
var stripeCustomerCreateOptions = new StripeCustomerCreateOptions
{
Email = value.StripeEmail,
SourceToken = value.StripeToken,
};
var stripeCustomerService = new StripeCustomerService();
StripeCustomer customer = stripeCustomerService.Create(stripeCustomerCreateOptions);
var stripeSubscriptionService = new StripeSubscriptionService();
var subscription = stripeSubscriptionService.Create(customer.Id, _stripePlanId);
我希望StripeCustomerCreateOptions 上有一个选项可以包含帐单信息。
我在表单发布请求中获得了账单信息。
- 编辑
在深入研究之后。我可以看到信用卡有关于地址的信息。但这不是我们所希望的。
我希望收据上有帐单地址。
我让它工作的唯一方法是从仪表板手动更新客户。
【问题讨论】:
标签: .net-core stripe-payments stripe.net