#Rahul_22

1 messages ยท Page 1 of 1 (latest)

static stoneBOT
desert root
#

Hi Toby

atomic matrix
desert root
#

Nope ther is no event for payment_intent.succeeded and we are unable to figure out why

#

As the same is working fine for test env

#

Live vs test webhooks after user makes a payment

#

Also can you tell me which webhook I should capture for subscription purchased and auto renewal

acoustic osprey
#

Do you have the ID of a successful payment in live mode that you didn't get this event for?

#

(``pi_123`)

desert root
#

Let me check

#

I have got this list of events for a user

#

whose payment was done but webhook was not fired

acoustic osprey
#

So those events are in your logs but you didn't get any of them?

#

Or are you still talking about payment_intent.succeeded events specifically? Those events are for a $0 invoice, so there is no payment intent, and it is expected to not see a payment_intent.succeeded here.

#

If you aren't seeing those other events, can you send me one of their IDs so I can take a closer look at why you didn't receive it?

desert root
#

OK since the paymemt is $0 so the paymentIntent is not generated

#

can you tell me which webhook I should capture for subscription purchased and auto renewal

acoustic osprey
#

Those top two events in your screenshot, checkout.session.completed and the one that shows up as "______ subscribed to price_1234....." , will be good for capturing when a subscription has started. You can use either of those.

#

For renewals, we typically recommend listening to invoice.paid , when you get that you can check the billing_reason, it will be subscription_cycle when the invoice is from the subscription renewing https://stripe.com/docs/api/invoices/object?lang=python#invoice_object-billing_reason