#HK6 - Payment Intent Responses
1 messages ยท Page 1 of 1 (latest)
Hi ๐
The transition between states asynchronously can happen on occasion. This is usually the result of an async card decline by the issuer (fraud detection, etc.). This is why we strongly recommend including webhook listeners in your integration
and if we don't receive the sync, we put the order pending until we get the async
Ok got it. So we can get different responses in sync and async
Yes. Our payment flows mean we need to send a response back from the API request synchronously but card issuers can operate on timescales that just don't work with modern web technologies so we have to update the payment intent asynchronously as well.
Happy to help ๐ ๐
so
last question
for async
we listen to pi.succeeded
are there others?
pi.failed?
We've got a great list of payment intent events listed right here:
https://stripe.com/docs/api/events/types#event_types-payment_intent.amount_capturable_updated
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.