#Fadi-PaymentIntent-invoice
1 messages ยท Page 1 of 1 (latest)
Hello ๐
Give me a moment to catch up here and I'll respond as soon as I can ๐
sure ๐
It really depends on your integration really.
I mean what is the recommended way to do that?
Should I display invoices to customers? Or just do this with a payment intent and display a receipt?
what's the point of the invoice?
That depends on your integration though. You don't necessarily need the invoice to charge a customer, correct?
PaymentIntents and Invoices are two separate concepts. Invoices use PaymentIntents underneath.
Okay one last question, there is the scenario where a customer backs out on paying, so in this case I have to do this:
1- If I'm using invoices, the next time the same customer wants to buy coins -> I have to fetch the old invoice and void it? will voiding the invoice deletes the invoice item? And then create a new invoice item and invoice.
2- If I'm using only paymentIntents, I would have to only Update the paymentIntent's amount and description and let them pay it, correct?
that is correct, yes
So, maybe the PaymentIntent way is easier programmatically and logically. Right?
Thanks!