#xarm-subscription-upgrade
1 messages · Page 1 of 1 (latest)
@amber bramble not that I know of, it's a pretty specific situation and overall works the same as any other upgrade, except the billing cycle starts immediately. What's blocking you?
ok no worries. I guess I was blocked because I have an example of generating a checkout session for a new subscription, but I need to replace the current (free) subscription.
in other words, I guess, would there be an example of generating a checkout session for a subscription upgrade? If not no problem I'll try and figure it out.
ah but that just will never work
Checkout creates new subscriptions, it never allows changing existing ones
ah ok. Could/should I create a checkout session to collect payment method, and then server-side change the subscription?
Starting with this:
https://stripe.com/docs/payments/checkout/subscriptions/update-payment-details
yes but that doesn't really make sense
You likely want to look into the customer portal https://stripe.com/docs/billing/subscriptions/customer-portal
The customer portal did not support some mior details of use case
should it be the proration preview then?
then I'd recommend not using Checkout at all in that case and build your own integration with Elements.
ah I just found a relevant message from another conversation, sorry for repetition. They had recommended this:
for the update case, you could just build a page that does the 'business logic' of letting the user pick what plans they're changing and by how much, and then you apply the update with always_invoice (https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment). Then you can send the user to the hosted invoice page(https://stripe.com/docs/invoicing/hosted) for the actual payment for the update, if that works for your use cases, it avoids building an actual payment page with Elements.
does that make sense? I was recommended that to avoid building with Elements
yeah that would work
ok thanks. Sorry for so many messages, following advice above, would I be able to set it to start a full month of billing, as opposed to proration of what's left of the month?
alternatively can I request immediate payment for an upgrade with proration disabled?
sorry got pulled in a meeting
When you go from free to paid we always change the billing cycle and start a new cycle immediately, so no proration and it'd just work
with things like this I really recommend just trying the flow yourself in test mode
thank you