#gje-downgrades
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
hi so im confused as to how to swap plans
i have two products that i have users purchase on checkout
using the API?
yup using stripe webhook in django
currently for upgrading, im refunding the user based on their remaining duration, and replacing their subscription by deleting the old one
but im not sure how to go about doing downgrades
have you had the chance to look at the doc I sent you earlier?
yup, sorry im v confused with that docs and i have read that page along with this page https://stripe.com/docs/api/subscriptions/update
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
but i still dont rly get how to use that function...
you need to update the subscription and pass in the items array an object with the id coming from the current subscription item and the new price