#caroline0
1 messages · Page 1 of 1 (latest)
HI 👋
There isn't a way to configure Checkout to do this. But you can configure your integration to do this.
If you set the new price as the default_price for product A, then when you retrienve Product A from the API it will have that Price ID as the value for the default_price property.
https://stripe.com/docs/api/products/object#product_object-default_price
great thank you!
quick follow-up Q: what is the best way to pull data about when the subscription expires or renews?
would that be in a webhook?
Webhooks are a great option here. You can configure how early we send a webhook about an upcoming renewal in the dashboard.
sounds good! to be clear, I'd love our plans page to say "renews XXX date" or "expires XXX date"
so happy to just query the plan via stripe when the page loads, or can store info in our database from webhooks, whichever is the preferred approach
Hello! I'm taking over and catching up...
For the use case of showing "this Subscription will renew/expire at X" on demand when someone loads a status page it's probably best to make an API request to get the current status fo the Subscription at that time.
I'm having an issue with this – not sure if what I'm trying to do is possible.
Let's say a customer buys product A at $B, then cancels their plan.
Then, they want to renew their plan. But now the plan costs $C.
I still see the option to renew at $B if I've cancelled my plan, even though the default price is now $C.
Is there a way to have people renew at the new default price $C? or are renewals always set for the price the original purchase was made at?
You see the option to renew? Where? Is this in the Customer Portal?
yes, in the customer portal
If the Subscription has been canceled they shouldn't be able to reactivate it, they would have to start a new one.
Is the Subscription actually canceled or just scheduled to cancel in the future?
oh, sorry, it's scheduled to cancel in the future. so I press "cancel subscription" but I still have a month left until it actually stops