#Danniish
1 messages · Page 1 of 1 (latest)
Hi there!
Can you share the billing portal ID for the customer where they see the cancel button, and the ID where they don't see the cancel button?
Cant see the cancel button = cus_MgxTmrrkVKhzuU
Able to see the cancel button = cus_N2kgJUlw7YwX4b
thanks! and how do you create the billing portal?
through API
If you read this page: https://stripe.com/docs/customer-management, there's a section called "Known limitations of the customer portal". There we say:
Customers can’t update or cancel subscriptions that are attached to schedules.
stripe.billingPortal.sessions.create
And cus_MgxTmrrkVKhzuU has a subscription created by a schedule. So it's expected they cannot cancel it from the customer portal.
So there isn’t any way ... we can give an option to our customers to cancel the subscription
There are a few options:
- Remove the subscription from the schedule https://stripe.com/docs/api/subscription_schedules/release
- Or build your own UI that allow customers to cancel the subscription
No I want that cancel subscription in my portal that we we went for the pre-build stripe pages ...
Then remove the subscription from the schedule with https://stripe.com/docs/api/subscription_schedules/release, and the customer will be able to cancel it from the portal.
Does releasing effect the attached subscription .... means if we remove the schedule ... subscription will still be attached to the customer and will still charge customer on monthly /yearly basis as per their plan ...
subscription will still be attached to the customer and will still charge customer on monthly /yearly basis as per their plan ...
Yes. But if you subscription schedule was planning to make change to the subscription in the future, then these change won't happen if the subscription is released from the schedule.
Yeah sure got it ... Thanks for the help