#Benoît
1 messages · Page 1 of 1 (latest)
👋 happy to help
Hello @carmine void 🙌
please give me a moment to read through your message
Of course !
Just in case :
My subscription is sub_1NLwJqAYYvne95SH1eURL4nK, and the new added item is si_O8O3JhyOroTAlL.
And the prorated invoice is in_1NM7HOAYYvne95SH9ELawQ6S. I was expecting it to be to its full price : 10€, and no 9.84€
if you don't want proprations to be calculated then you need to use proration_behavior: 'none'
I already test it, and no payment is done immediately. Should it have been ?
With proration_behavior: 'none', the item is just added to the subscription, ready for the next upcoming invoice, but the customer has not paid immediately
I'm looking into this, just give me a second please
No problem, thank you
do you want the proration to happen but to be deducted from the next invoice?
To be simple, i need the strict opposite of proration_behavior: 'always_invoice'.
Instead of having a prorated payment now, and the full price in the next upcoming invoice, i need my customer to pay the full price now, and be charge of the remaining in the next upcoming invoice
You see ?
so basically pay 10€ now and 9.84€ next invoice?
with the Subscriptions API this is not possible
I'm trying to see whether it's possible to do it with the Subscription Schedule
Ok thank you
it's the same behavior with Subscription Schedule
I really don't see a way of achieveing this, unless you want to charge the 10-9.84 as an add_invoice_item on the subscription
and add that as a Customer Credit Balance
so it would be deducted from the next invoice
it's not overcharging
you can call it upfront payment or something like that
so basically you prorate it will get you an amount of 9.84
then you add a one-time fee called something like upfront prorated payment having an amount of 0.16
then you add a Customer Credit Balance of 0.16 to the customer
which will be deducted from the next invoice 10 - 0.16 so your customer is paying 9.84 in the next invoice
I'm trying to understand
But with this method, i still have the same problem of not being able to make a 10€ payment now, have i ?
you will be able to
because you will have the prorated value of 9.84 plus a one time fee of 0.16
making it a total of 10
Ah yes, sorry ! So, by using proration_behavior: 'always_invoice'. and adding 0.16 as a one-time fee
I see
yes exactly
Interesting workaround, thank you !
but don't forget to add the Customer Credit Balance
this way the Customer will have 0.16 in their credit balance, ready to be used in the next invoice
Could i simply use invoiceItems.create to attach a 0.16€ invoice to my customer, that will be paid in the same time of the subscription item when i will make the subscriptions.update ?
This way, my customer would have a unique invoice, with 2 lines : 9.84€ + 0.16€
Taking over here, you can just use the add_invoice_items parameter when you update the Subscription to add an ad-hoc item: https://stripe.com/docs/api/subscriptions/update#update_subscription-add_invoice_items
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Indeed. So you confirm that @carmine void suggestion or mine (by using add_invoice_items) would do the same thing ?
Yep, just one less API call
Ok