#zigo0292
1 messages · Page 1 of 1 (latest)
No, you can't retroactivelly create a new invoice and link it to an already paid PaymentIntent.
You should create the invoice first and then use the underlying PaymentIntent to accept the payment
so if my goal is to just send receipt "feed" ( an invoice then ) after punctual payment .. my process wil be :
- create invoice ( but no send this to user ) and and in the same time, juste after :
- get the paymentIntentID returned
- process payment with this paymentIntent via cardElement
it's ok ?
thank you for your quick response
Correct. Receipt is different than the invoice.
Receipt: https://stripe.com/docs/receipts
Invoice: https://stripe.com/docs/no-code/invoices
To be clear, you're interested in sending an invoice and not the receipt, correct?
Yes , i'm interested to send invoice for payment made ( and not a receipt ).
Doc is easy for paymentLink but i dont use this process.
Actually i'm just with paymentIntent + cardElement
Right right, the doc was just for receipt example
But yes, the steps you outlined should work
ok thanks a lot, i wll try that.
have a good day