#atul-receipt
1 messages ยท Page 1 of 1 (latest)
๐ Happy to help
Are you referring to the email receipt of the successful payments?
Or invoices?
susccessful payment
The email receipt will only be present after you configure the email to be sent for successful payment: https://stripe.com/docs/receipts
If this has been configured, you can use below steps to get the receipt:
- Retrieve Payment Intent list: https://stripe.com/docs/api/payment_intents/list
- Look for
charges.data[0].receipt_urlunder each Payment Intent:
https://stripe.com/docs/api/payment_intents/object#payment_intent_object-charges
https://stripe.com/docs/api/charges/object#charge_object-receipt_url - Download the receipt from
receipt_url
Please note that receipt_url will be absent if receipt has not been sent to the customer or payment was unsuccessful.
ok thanks
No problem! Happy to help ๐
One more querry
We get paymnet intent null sometimes, whats the reason to get pyament_intent = null
Which API are you using that returned you payment_intent=null?
payment.retrieve