#HyperGame
1 messages · Page 1 of 1 (latest)
Hi there, I believe this is your application logic to decide when to create a PaymentIntent.
My current logic is to create a PaymentIntent whenever they access the checkout page, but that will create a lot of payment intents if the user just reload the page
In this case, you should only create one Payment Intent for an order. Even when the page is re-loaded, it will be the same payment intent
Ah alright, is there a way to automatically delete payment intents after certain amount of time passed?
No, this is not possible. You may cancel the payment intent manually: https://stripe.com/docs/api/payment_intents/cancel
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
thanks!