#urvi_16500
1 messages · Page 1 of 1 (latest)
normally you have payment_intent.succeeded
payment_intent.succeeded is called everytime or once when payment failed and after some time it's success?
on each time it succeded, regardless of if it was failed before or not
I want an webhook wich is called when payment failed and then after some time it's success.
@thorny widget Are you there?
Hello
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
can you give me example? How i can do this?
It's just as I mentioned above. You know how to append a metadata?
Let's start with https://stripe.com/docs/api/metadata
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Is there anu example available?
On the Doc link above! I would suggest follow the explanation there
Here is Update PaymentIntent metadata: https://stripe.com/docs/api/payment_intents/update#update_payment_intent-metadata
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Okay
I will check it.
Thanks for support
I am not able to understand solution.
Can you give me example?
@thorny widget ?
Sorry but you would want to be specific. In which part you don't get it?
For metadata creation
Have you used the example code here?
But i don't have any idea at where i need to set.
this is my code
That's the whole file code. You know where you are receiving payment_intent.failed?