#cecile - subscription
1 messages ยท Page 1 of 1 (latest)
What do you mean by "reactivate" a subscription here? Is the subscription cancelled?
No the last invoice payment is failed the subscription is "en retard" so past_due I guess
So I would like to propose tha link to change payment information directly on my website
You can collect new payment details on your site and update the payment method to be used for teh subscription, yes
What exactly are you trying to do and having trouble with?
To create the link to the Stripe form where the customer will update the payment method associated to his subscription
Are you referring to a Stripe hosted UI? Or do you mean on your own site?
on my own website
OK, and what part do you need help with?
I can't find how create this link
OK, let's take a step back, we appear to be going in circles.
Where are you trying to show a link? Can you show me examples of what you mean?
Yes
Are you referring to the optional link you can provide in failed payment emails?
https://stripe.com/docs/billing/subscriptions/overview#emails
Maybe
Actually I only use checkout payment for now
If a subscription stoped because a payment failed I would like to show it for my customer directly on their private space on my website with a direct link to reactivate it easily
OK if you're only using Checkout, you are likely to have the best experience using the Customer Portal, then:
This supports allowing your customers to update their payment info on subscriptions
Using a simular UI to Checkout
I suggest reading there and exploring the preview we provide
On my own website I have a delivery place where I delivery virtual product regarding number of payment is validate on the subscription by the customer. If the second payment failed then the delivery stops and a message is shown that the custom needs to reactivate is subscription and there is where I miss the intel to create the link to a reactivate form
The customer Portal migght be a solution but I'm afraid the owner of the website will prefere a simple way. I can develop if needed or may be it will be simple to start a new subscription
Hello ๐
taking over for synthrider as they have to step away in a bit
hello
As my colleague mentioned earlier, Customer Portal will provide a consistent experience with prebuilt UI that goes along with Stripe Checkout
Alternatively, You can pause and unpause (payment collection) a subscription manually using the API but for that you'll have to create your own UI
Ok that means there is no, let's say, "magic link" or form which will create the reactivate subscription form like the checkout session is constructed or like the link the plateforme Stripe send to customer by mail?
hmm let me check
You can create a Checkout Session in setup mode for that specific customer which will let your user input new PaymentMethod. Then you can use checkout.session.completed webhook event to take that PaymentMethod and update it on the Subscription and try to pay the latest invoice to move the subscription to active again.
which will require a lot of DIY-ing compared to just creating a Customer Portal
Yes I know but I just confirmed with my client (owner of the website) and she doesn't want the customer portal so I'll try the setup mode or maybe juste create a new subscription
๐
Thanks for your time
NP! Happy to help ๐