#jairo094215_api
1 messages ยท Page 1 of 1 (latest)
๐ 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/1364604099772809360
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
A support person told me in the past that this was possible via a setting, but that the invoices would be accompanied by their respective customer email, and we do not want the customer to receive this email from Stripe. Is this information correct? Is this still the case?
Hi ๐ Checkout Sessions for one-time payments can be configured to generate paid invoices when they're completed, by setting invoice_creation.enabled to true when creating the session:
https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-invoice_creation
We talk about this feature in a bit more detail here:
https://docs.stripe.com/payments/checkout/receipts?payment-ui=stripe-hosted#paid-invoices-hosted
I'm less familiar with the email behavior that accompanies this feature (in general my teammates and I in this forum aren't too familiar with email generating functionality, as it is rarely controlled via our API which is what we specialize in helping with) but based on what I'm seeing in that guide, it does look like the invoices are automatically emailed to the customers. I'm not sure if that is only if you enable emails for successful payments though.
Ok, I understand
In case I can't get the invoices generated without the emails being sent, how can I achieve the same via API?
The only thing I would need is an invoice with โpaidโ status for the amount that has been paid from the Checkout.
Hello taking over as toby has to step away
Again, we're not sure about the email functionality here, but have you tried disabling this in your dashboard settings? To generate invoices, first, in your Customer emails settings, under Email customers about, select Successful payments.
If Email customers about Successful payments is disabled I don't think we'll send the invoice if you pass invoice_creation[enabled] to true.
Recommend trying it
Ok, I'll try it
and regarding my second question? about generating invoice manually via API
Would need to use https://docs.stripe.com/api/invoices/create to create it and then pay it out of band via: https://support.stripe.com/questions/marking-an-invoice-paid-out-of-band
Then only calling to /v1/invoices/:id/pay after the Invoice creation will marks the invoice as paid without attempting any kind of payment collection?
Ohm ok, I've not noticed this detail in the docs