条带化:向订阅添加一次性付款 [英] Stripe: add a one off payment to a subscription

查看:57
本文介绍了条带化:向订阅添加一次性付款的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Stripe中是否可以在不创建专门计划的情况下向订阅添加一次性付款?

Is it possible in Stripe to add a one off payment to a subscription, without creating a dedicated plan?

例如,如果我有一家苹果订阅公司,我们每月收取4英镑的费用来收取一袋苹果,并希望为用户提供一月份添加几根香蕉的机会.

For example, if I had an apple subscription business where we charge £4 per month to receive a bag of apples, and wanted to offer users the chance to add a couple of bananas in January.

除了香蕉之外,您几乎可以添加任意数量的任何其他类型的水果,然后在下个月直接签约购买一袋苹果.

Except, as well as bananas you could add almost any number of any other type of fruit, then the following month go straight back to being signed up for your bag of apples.

我可以向卡收取差额,但是由于订阅在每月的固定日期进行,因此可能会使银行的对帐单混乱.我现在正在与Cashier一起使用Laravel.

I could charge the card the difference, but with the subscription going out on a set day each month and it might make for a messy bank statement. I'm using Laravel with Cashier at the moment.

推荐答案

您可以为此使用发票项目对象.发票项目可以添加到订阅中,并在下一个订阅计费周期内支付.

You can use the invoice item object for this purpose. The invoice item can be added to a subscription and would be payed during the next subscription billing cycle.

或者,您也可以只创建单点收费.这与订阅没有直接关系,只需向购买卡收取费用即可.

Alternatively you can also just create a charge a la carte. This would have nothing to do with the subscription directly, and simply charged the card for the purchase.

发票项目: https://stripe.com/docs/api#create_invoiceitem

收费: https://stripe.com/docs/api#create_charge

这篇关于条带化:向订阅添加一次性付款的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆