#golden - failed subscription payments
1 messages · Page 1 of 1 (latest)
We have a section in our doc on various subscription payment scenarios if you have not seen it already. https://stripe.com/docs/billing/subscriptions/overview#how-payments-work-subscriptions
I mean.. api to check subscription renewal.. I need to check the renewal status on the backend
For this, you will want to check the subsription's status, it will be active if the user is in good standing with their payments. If payments have failed on the subscription, its status will change based on your settings
You would use this API call https://stripe.com/docs/api/subscriptions/retrieve
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
One more question. how to test the subscription? I cannot wait for 1 year to check if subscription is renewed successfully in test
Though we would typically recommend using webhooks, that way we notify you when something happens with a subscription rather than you needing to poll for an update
We have Test Clocks, you can use them to simulate a year passing https://stripe.com/docs/billing/testing/test-clocks
Thanks a lot