#avgn_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1422951633280565299
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi please share the subscription id and I can take a look at the scenario
sub_1SC03JLdSE83OpKyBD0X8Qj5
Ok I see and to confirm do you want to keep billing cycle anchor the same as subscription creation date while also billing the full $100?
100 is just an example amount but yes
No pro rata charge
Same billing cycle
(We use these for investments so it is not a service where user pays based on number of days )
Ok this isn't super straightforward to do but I'll outline what you can do
you'd update the subscription with the new price while also passing proration_behavior=none: https://docs.stripe.com/api/subscriptions/update#update_subscription-proration_behavior
That will ensure that the next invoice on the next billing cycle is the full amount
Now, to bill them for the first month that you missed you'd have to do the following:
Create an invoice item for the amount to charge the customer: https://docs.stripe.com/api/invoiceitems/create
Create an Invoice for that invoice item: https://docs.stripe.com/api/invoices/create#create_invoice-subscription
Finalize and pay it: https://docs.stripe.com/api/invoices/finalize and https://docs.stripe.com/api/invoices/pay
Okay
And I can also choose to just do the Step 1 correct i.e
Just fix the amount for next cycle and inform the customer that their cycle starts next month (assuming they are okay with it ??)
Sure
Really what I'd recommend is to just cancel that subscription and create a new one
And then have it bill them immediately
That'd be the easiest thing to do
Yes agreed but just getting all the possible options.
One question - the invoice creation step that you mentioned at the end - does it need customer confirmation or we are authorised to do it?
Unfortunately it depends
It's up to the bank whether or not a payment requires 3ds auth
But that's true of any off-session payment
So would apply to any option you take here
Okay and the cancel and create new subscription option, even that requires re authorisation from the customer correct ?
It depends
On whether or not the bank wants it
If you collected their payment method properly already it's less likely though
Less likely to go through or less likely to not go through?
Less likely for customer to need to authenticate
Okay thanks
Hi just tried the step one with prorated none on Test mode
But it created a new invoice immediately
Subscription ID => sub_1SDPAtPR49XyF7YyH7IFexmb