#anhle82 - payment intent
1 messages · Page 1 of 1 (latest)
hi, I'm working on migrating card element to payment element.
With card element, I didn't have to have a payment intent before showing the card element form. The checkout process for new customer is below:
- Show payment form
- Submit order via ajax, create payment intent and return to front end
- Update card element form with the return secret code and submit payment.
With payment element, I have to have a payment intent to have secret key to be able to show the payment element form. This will lead to lots of Incomplete Payment intent if my customers abandon cart
What is the ask here?
the question is here, is this possible to delete Incomplete Payment Intent or cancel is the only option?
Got it, yes -- cancelling is the only option here: https://stripe.com/docs/api/payment_intents/cancel
I'm concerned that the Dashboard Payments list will have lots of Incomplete Payment if new customer never go through with the checkout process
Yes, that could be confusing so you could run a cron job to cancel these payment intents.