#asdfgh - expiration time
1 messages · Page 1 of 1 (latest)
Hello, can you clarify what expiration time you are looking to set?
Payment intents do not expire, they need to be cancelled manually. If you are creating Checkout Sessions, I can check if that expiration time can be set
I am creating payment intents and then I am presenting payment sheet in my mobile app
The point is, my app is for buying tickets for events and the event has a limited amount of tickets
So I am thinking of two solutions, the first, if possible, when creating the payment intent, book a ticket and set its expiration time, if it expires, cancel the ticket booking
and second, if it is not possible to set an expiry time for payment intent to listen to the number of available tickets in the user's application and if they are exhausted, manually cancel the session
Unfortunately payment intnents don't have an expiry like that. You will need to keep your own timer and call cancel on the payment intent once your expiration htis
Yep, the second option should be viable
Okay, thanks