#benjam3960
1 messages · Page 1 of 1 (latest)
Hi there!
So you already have a payment method saved on the customer?
Do you want that extra payment to be tied to the existing Subscription or not?
Yes, an IBAN is already attached to the customer, with a mandate (a monthly billing is active)
The best is that this extra payment is tied to the existing subscription, but if it is too complicated, let's just do a one-off payment without linked it to the subscription
Then you can update the Subscription to add an add_invoice_items: https://stripe.com/docs/api/subscriptions/update?lang=node#update_subscription-add_invoice_items
If I do that, does it mean every following monthly payments will have this extra item ?
I just want to invoice him right now one time
No, it will be only for one month.
ok
next billing is planned for november, is there a way to execute this extra payment before ?
For recurring amonts, use the items property https://stripe.com/docs/api/subscriptions/update?lang=node#update_subscription-items
next billing is planned for november, is there a way to execute this extra payment before ?
Let me check
Yes it's possible if you set proration_behavior: "always_invoice" in your update call: https://stripe.com/docs/api/subscriptions/update?lang=node#update_subscription-proration_behavior
And the customer will be charged immediately.
ok thank you I will test it