#mo_aqsam-receipts
1 messages · Page 1 of 1 (latest)
Yes, stripes documentation is a little unclear. I want to trigger a receipt sent from the backend programmatically.
I can enable email on successful payments but that's not what I want.
I want to send the receipt at my own time by triggering the it in the backend but unsure how to leverage and do it from my backend.
If that's not possible what information or data object i can use to populate a custom receipt ?
let me know if you need more clarity
So you want to use the Stripe Receipt but you want to send it on your own timeline?
yes
Are you using invoices or just PaymentIntents?
Okay so you want to send the customer a charge receipt or you want to send them the invoice itself?
i want to send a receipt to the customer
You can access the receipt URL via the API on the charge object: https://stripe.com/docs/api/charges/object#charge_object-receipt_url
So you would grab that and pass that along to the customer if you don't want to have Stripe send it for you.
Ok but i don't want to just send the url, is there a way i can embed into an email ? Similar to how stripe does it just a custom one.
or if you can refer me to the data properties i can use to fill up a custom receipt ?
im playing around with the invoice object currently
sorry if i wasn't being clear
No it can't be embedded. You can manually send receipts to a customer via the Dashboard.
But we don't have support for this in the API.
If you want to build your own receipt, then I recommend looking at the different properties on the invoice and on the charge object
And pulling those that you want to provide to the customer.