#karuppasamy
1 messages ยท Page 1 of 1 (latest)
Hi ๐ just to make sure I'm understanding correctly, you want a way for your server to be notified when a Subscription attempts renewal so you can handle the downstream processes?
If so, using a Webhook Endpoint is likely the best approach for that:
https://stripe.com/docs/webhooks
Multiple Events are generated when a Subscription moves to the next billing period, and which one you should listen to may depend on what data is most important for you to readily have access to. Would you rather your server be provided the Subscription object or Invoice object when it is notified about this?
When the auto-renewal occurs and the customer's debit card is charged, I need to update the subscription end date in my database
can i do that
Alright, so if it's details about the Subscription that you want to update, then listening for customer.subscription.updated Events is likely a good Event type to have your webhook endpoint listen for:
https://stripe.com/docs/api/events/types#event_types-customer.subscription.updated
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
can create graduated price without pricing table?
Yes, you can create Price objects without a Pricing Table:
https://stripe.com/docs/api/prices/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Are you encountering an error when trying to do so?
no currently i am using pricing table .that's y i am using without pricing table
how to set in web api?
How to create a graduated Price via the API?
yes i need to create graduated Price via the API