-
Notifications
You must be signed in to change notification settings - Fork 413
Open
Description
Bug report
Describe the bug
In the fixed-price-subscriptions node server (server.js), the wrong method to cancel the subscription is being called.
To Reproduce
- Run the client-side and server-side code
- Use the application as demonstrated in the demo.gif
- After cancelling subscription, you are redirected to the Account page, where the status remains active and an error is shown in browser console
Expected behavior
The subscription status should be cancelled when returning to the Account page
System information
- OS: macOs
- Browser: Chrome
- Server environment: Node
Additional context
In the '/cancel-subscription' endpoint, stripe.subscriptions.del() should be replaced with stripe.subscriptions.cancel().
Metadata
Metadata
Assignees
Labels
No labels