#Elian-invoices

1 messages · Page 1 of 1 (latest)

eager swan
#

@eternal fog after finalizing the invoice:

take the invoice.payment_intent.client_secret and confirm it on the frontend

or redirect the customer to the hosted_invoice_url and have them pay there

or call the https://stripe.com/docs/api/invoices/pay endpoint(but I don't recommend that one as it doesn't work with 3D Secure)

eternal fog
#

OK thank you, I will try and confirm the payment intent.

#

Another question : how do I send the pdf invoice as an attachment to my client ? Indeed the invoice_pdf is a download link, but I cannot manage to retrieve the attachment in my backend.

eager swan
#

it's possible to download it programmatically in your code if you want to then save it and attach it to an email your system sends

#

the only thing to note there is you need to set a User-Agent on your request(we block requests without one) if whatever tool you use to download the contents of the URL doesn't add one automatically

eternal fog
#

would you have a javascript widget to share with me for this download?

eager swan
#

I would not.