#xarm-subscription-upgrade

1 messages · Page 1 of 1 (latest)

red jewel
#

@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?

amber bramble
#

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.

red jewel
#

ah but that just will never work

#

Checkout creates new subscriptions, it never allows changing existing ones

amber bramble
#

ah ok. Could/should I create a checkout session to collect payment method, and then server-side change the subscription?

red jewel
#

yes but that doesn't really make sense

amber bramble
#

The customer portal did not support some mior details of use case

#

should it be the proration preview then?

red jewel
#

then I'd recommend not using Checkout at all in that case and build your own integration with Elements.

amber bramble
#

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

red jewel
#

yeah that would work

amber bramble
#

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?

red jewel
#

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

amber bramble
#

thank you