#Suren
1 messages · Page 1 of 1 (latest)
Like this
Hi there
You can't
You either use the update Subscription API endpoint
Or you send customers to the Customer Portal and they can update from there
The Checkout API is only used for taking payments, starting Subscriptions, or setting up payment methods.
May I generate redirect url for pay update subscription with another method?
is there a method by which i can generate a redirect url like did the session.checkout method
Sounds to me like you are looking to redirect to the Customer Portal? (See: https://stripe.com/docs/customer-management). In which case yes you would create a portal session using: https://stripe.com/docs/api/customer_portal/sessions/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thank you for your support it was very helpful for me!
Sure thing!
for understanding, I just wanted to create such a Url for updating the subscription
https://checkout.stripe.com/c/pay/cs_test_a19eR1I2Gt2Xd3UZjiqckGISs096vOOQ1sVKIL4WuO7MuByS23JOj1Q1Wg#fidkdWxOYHwnPyd1blpxYHZxWjA0SF0xYGBENE5dNj1gazdqfElRMj10bjBQTlR9VDMzY2dXRjRUSUcxfGdCNTRMS0hdPWxoSHRCVmFOVmw9ZEw9djxmR3d%2FPTQzYGE3bVV8MWIyUGlDTjdCNTVfdn1KTXdzYycpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBabHFgaCcpJ2BrZGdpYFVpZGZgbWppYWB3dic%2FcXdwYHgl
You can't create a Checkout Session URL
You would create a Customer Portal Session which returns you a URL
It will be a similar idea to creating a Checkout Session, but a different URL
thank you very much!!!