#patrick_api

1 messages ยท Page 1 of 1 (latest)

trail pollenBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1217838425668059157

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

regal bronzeBOT
quasi robin
#

Why are you creating both a payment intent and invoice?

#

You can collect payment with the invoice

#

When you create both, that's technically creating 2 payments

#

Invoices are build on top of payment intents, so the invoice is already creating one

jolly hound
quasi robin
#

Creating both doesn't really make sense though

#

Unless you want to collect payment twice

jolly hound
#

Ok, no that was not my intention.
I'm quite a newbie with these things.

My intention was to send the invoice to the customer by email right after the payment is validated.

quasi robin
#

Do you need them to receive an actual invoice or just a receipt of the payment?

jolly hound
#

an actual invoice

quasi robin
#

So the only way to have stripe email your customer an invoice is if you want them to complete payment via the invoice link in the email

#

But if you want to collect payment on your site and them have them receive an invoice after payment, you'll need to use your own email service to send the invoice link

jolly hound
#

Ha ok.
The second option is more appropriate to my case.

quasi robin
jolly hound
#

Sorry, this must be all done manually ?
I'm confused, I was thinking I could generate them on the fly, like sending a receipt, but perhaps I'm wrong

quasi robin
#

Yeah

#

You can generate your own pdf if you just want to use payment intents

#

But if the intent is to accept payments on your site and you want them to also receive an invoice via email, you need to handle that part yourself

jolly hound
#

Ok got it.
So then, coming back to your question (receipt vs invoice), if I want at least to send a receipt by email, is this possible via an endpoint ?

quasi robin
#

That can be used with the payment intents endpoint

#

Invoices wouldn't be necessary

jolly hound
#

ok I see. Will try that then, thank you!