#karuppasamy

1 messages ยท Page 1 of 1 (latest)

waxen iglooBOT
spark helm
#

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?

Listen for events on your Stripe account so your integration can automatically trigger reactions.

waxen iglooBOT
long fulcrum
#

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

spark helm
#

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

long fulcrum
#

can create graduated price without pricing table?

spark helm
#

Are you encountering an error when trying to do so?

long fulcrum
#

no currently i am using pricing table .that's y i am using without pricing table

honest belfry
#

๐Ÿ‘‹ stepping in here

#

Let me know if I can help further

long fulcrum
#

how to set in web api?

honest belfry
#

How to create a graduated Price via the API?

long fulcrum
#

yes i need to create graduated Price via the API