#napolean_solo
1 messages · Page 1 of 1 (latest)
make an update subscription API call, setting the trial_end value to a new timestamp, or now to end immediately:
What about starting a subscription?
How can I ask for payment? Or it's that the invoice is created when the trial ends?
When starting a subscription if you don't want to introduce a trial, just .... don't set the trial parameter, no?
It will await the payment before setting the status to active
No I mean in case a user wants to upgrade mid trail is what I mean
You can try passing proration_behavior as always_invoice
If you want to charge for an upgrade immediately, pass proration_behavior as always_invoice to create prorations, automatically invoice the customer for those proration adjustments, and attempt to collect payment. If you pass create_prorations, the prorations are created but not automatically invoiced.
Okay but isn't proration for up/down grading paid plans? Or is it fine here in the trial case also?
Hey sorry, let's take a step back. So you have a customer on their mid-trial. Now you want to end it early to a different price?
If you just set trial_end to now, and update the new Price, it should start the billing cycle immediately with the new Price, generate an Invoice and you will have the Invoice's PaymentIntent's client_secret to start collecting the PaymentMethod
Hold on a sec, that's too much information. Can you please break it down?
Update new price? Can you elaborate on that?
Generate an invoice? You mean I will have to create an invoice myself with the priceid?
Invoice's client_secret? I didn't understand anything at all from this point.
Can you please break it down for me? 🙏