#urvi_16500

1 messages · Page 1 of 1 (latest)

fierce bloomBOT
thorny widget
#

normally you have payment_intent.succeeded

digital jacinth
#

payment_intent.succeeded is called everytime or once when payment failed and after some time it's success?

thorny widget
#

on each time it succeded, regardless of if it was failed before or not

digital jacinth
#

I want an webhook wich is called when payment failed and then after some time it's success.

#

@thorny widget Are you there?

#

Hello

thorny widget
#

Yes but there is no such concrete event, unfortunately

#

You can keep track by, when you received payment_intent.failed, appended a metadata to your PaymentIntent, and then when received payment_intent.succeeded, check if that metadata exists

digital jacinth
#

can you give me example? How i can do this?

thorny widget
#

It's just as I mentioned above. You know how to append a metadata?

digital jacinth
#

Is there anu example available?

thorny widget
#

On the Doc link above! I would suggest follow the explanation there

digital jacinth
#

Okay

#

I will check it.
Thanks for support

#

I am not able to understand solution.

#

Can you give me example?

#

@thorny widget ?

thorny widget
#

Sorry but you would want to be specific. In which part you don't get it?

digital jacinth
#

For metadata creation

thorny widget
digital jacinth
#

But i don't have any idea at where i need to set.
this is my code

thorny widget
#

That's the whole file code. You know where you are receiving payment_intent.failed?