Stripe: add a one off payment to a subscription

匿名 (未验证) 提交于 2019-12-03 00:44:02

问题:

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

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.

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.

回答1:

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.

Invoice Item: https://stripe.com/docs/api#create_invoiceitem

Charge: https://stripe.com/docs/api#create_charge



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!