#mzane42-Payment Intent
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
actually you can do this in multiple ways
you could always send an idempotency key https://stripe.com/docs/api/idempotent_requests so that the payment intent doesn't get generated twice
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
the other thing you could do is either save the PaymentIntent (PI) id in your own database
and once you receive the event the first time you mark it as processed
and the second time you will get find that the PI was already processed and you ignore it
i've tried the second solution and for some clients it doesn't generate an order because of it
for the first solution, where can i add idempotency in payment intent that it was sent in off session for my recurring customr
this is generally what we advise in those scenarios
okey i will check that
last question, is there a tool to export webhook event ?
i want to do some filters for exemple search webhook by customer_id
you can use this to list all events https://stripe.com/docs/api/events/list
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.