I am implementing payment integration with stripe in NestJs. Use case is:
async
payment methodAsync
payment method succeeds
I came across this problem while handling checkout.session.expired
, how to distinguish payment which still can be paid by async payment method from session which for sure wont be paid (because customer didnt use any of payment methods).You use checkout.session.async_payment_succeeded
(docs) to know when an async payment succeeds. Overall, you can't complete an expired Checkout Session, which is what triggers the async payment method to begin processing, so this shouldn't really be an issue.