#Jay patel

1 messages · Page 1 of 1 (latest)

sullen daggerBOT
quick rapids
#

Can you share the invoice ID (in_xxx)?

spare wigeon
#

This event send in every subscription payment

#

Call webhook like below order

#

You see the invoice failed event on No 4 position

#

After that see no 11 position event invoice succeed

#

So why first send invoice.payment_failed event

#

This is stripe work flow for subscription payment?

#

Stripe send invoice.payment_failed event, I handle that event and write code for save field payment details on my local database but after that it send succeed event so which one I consider

#

When test subscription flow with Stripe tesing card that time first Stripe send invoice.payment_failed event and after that Stripe again send failed event so why send that event two time in failed payment scenario

quick rapids
#

I'd need the invoice ID to check why this happened. Can you share the invoice or subscription ID?

spare wigeon
#

Problem is save unnecessary failed entry in database

#

@quick rapids it happens in every subscription payment

quick rapids
#

I'm unable to reproduce the behaviour you described

#

Oh wait!

#

Is this specific for 3DS authentication flow?

#

I'm able to reproduce with 3DS test card

#

Checking it now

spare wigeon
#

No I given an example

Currently I am on R&d phase on stripe intrgate with website for subscription payment

In a subscription payment succeed or failed we save that transaction details on our local database for our uses.

Now stripe send me webhook event I already mentioned in above image.

When I make a subscription payment with stripe card which is 4242 4242 4242 payment is successfully done and save the payment succeed details like transaction ID in our database in invoice.payment_succeded webhook event. But when I see the dashboard for that subscription payment webhook it order mention in above image. U see the image stripe send the invoice.payment_failed event now problem is created I try to handle payment failed event in invoice.payment_failed webhook that time executed my code and save the payment failed details on my database but I pay with 4242.... card so payment is successfully done so why stripe send invoice.payment_failed event it create a one entey on database.

So I just want to know this is stripe default behavior for subscription payment webhook flow

quick rapids
#

No, this is not the expected behaviour. Can you share the subscription ID (sub_xxx) for such case? I'm unable to reproduce the behaviour you described with 4242 test card

spare wigeon
#

@quick rapids currently I am out of my city so my lap not with me .

#

Thanks for your time 🙏

#

FYI- I generate subscription checkout page link using stripe session code that mention in documantion

quick rapids
#

It'll be helpful if you can share the subscription ID (sub_xxx), so that we can into it further since I'm unable to produce the issue even with Checkout Session.

spare wigeon
#

You make test subscription payment from your side and check the webhook event. Which type of webhook event are called

quick rapids
#

There is no invoice.payment_failed event for 4242 test card