#emer - checkout subscriptions

1 messages ยท Page 1 of 1 (latest)

gloomy moss
#

Hey there! A newly created subscription would not be associated with any existing subscription in any way. If you wanted to manage the existing subscription you should do that instead of creating a new one.

Do do you mean a new subscription that went incomplete_expired without ever becoming active?

analog hill
#

No not that, suppose subscription is in "past_due" state and after multiple attempt to collect payment from stripe's behalf it changes to "canceled" or "unpaid" . In my case i have configured to change it to cancelled.

Now the question is, if a user again visit my website

  1. should i create a new checkout session for him
  2. send him to customer billing portal wherein he can see available priceIDS and select

And if i go with option one and listen to "customer.subscription.updated" event, does the subscription id stays as the earlier one and just the state change from "canceled" to active or an entirely new subscription is generated.

gloomy moss
#

OK, so that's not "expired" so to speak, just to clarify language here

#

(maybe you consider it as such, which is fine, but that's separate)

analog hill
#

i guess this answers it
"Canceling subscriptions disables creating new invoices for the subscription, and stops automatic collection of all invoices from the subscription by setting auto_advance to false. It also deletes the subscription. If your customer wants to resubscribe, you need to collect new payment information from them and create a new subscription."

Just read this, can u confirm this

gloomy moss
#

Yes, that, and the billing portal does not actually support creating new subscriptions

#

only managing existing ones

#

(this is a rough edge between checkout and customer portal that's were looking at ๐Ÿ™‚ )

#

But you should send them to Checkout to create a new subscription if that's what you're trying to do

analog hill
#

so basically in cancelled state, i should create a new checkout session

gloomy moss
#

Yep

analog hill
#

Thats great! Thanks for the quick support ! Your name rocks !

gloomy moss
#

Note if you use cancel_at_period_end the portal does support the customer resuming that subscription before the end of the period when is it cancelled permanently

#

NP and thanks ๐Ÿ˜„

analog hill
#

Yup, yup saw that while testing webhook and portal, thanks for the help.

#

One more thing, i have requested for access to test clock beta but didnt get one

gloomy moss
#

If you submitted your email in the form the team will reach out either to enable the beta or let you know when its more widely available, i'd suggest sitting tight