Javascript 购买NgxStripe时额外收费
我正在使用NgxStripe创建订阅购买,但在新版本的应用程序中,他们希望收取额外费用,因此会额外收取1或5笔费用 我的问题是我怎样才能做到这一点。我如何增加额外费用?我知道我需要先订阅,然后支付额外的费用,我看到了NgxStripe文档,但我没有看到关于支付的内容 我的实际代码是:Javascript 购买NgxStripe时额外收费,javascript,angular,typescript,stripe-payments,Javascript,Angular,Typescript,Stripe Payments,我正在使用NgxStripe创建订阅购买,但在新版本的应用程序中,他们希望收取额外费用,因此会额外收取1或5笔费用 我的问题是我怎样才能做到这一点。我如何增加额外费用?我知道我需要先订阅,然后支付额外的费用,我看到了NgxStripe文档,但我没有看到关于支付的内容 我的实际代码是: const name = this.stripeTest.get('name').value; this.stripeService .createToken(this.card.element
const name = this.stripeTest.get('name').value;
this.stripeService
.createToken(this.card.element, { name })
.subscribe((result) => {
if (result.token) {
//here I store the response and my user data when register
});
你能再解释一下你想做什么吗?这些“额外费用”是什么?@NolanH抱歉耽搁了。我的意思是,订阅计划是为拥有3种类型的服务,在新版本的应用程序中,我们添加了一个人订阅3种类型的服务,并添加1或2个以上,但分开来看,我不知道我是否解释了me@NolanH例如,如果您订阅我们的服务,你可以以9.99的价格租3辆车,但如果你愿意,你可以每辆车额外增加1或2辆车,我想知道如何使用ngx stripe来收取额外费用