#Shubham12h
1 messages · Page 1 of 1 (latest)
👋 How can I help?
After successfull payment using payment intent can i create a reciept of bill\
When you create the Payment Intent, you may set receipt_email field, so that the receipt will be created and sent after successful payment: https://stripe.com/docs/receipts?payment-ui=elements
Alternatively, you can go to Dashboard page of the Payment Intent and click Send receipt button to send the receipt
and can i download that reciept
You can find the receipt url in latest_charge.receipt_url in Payment Intent object to retrieve the receipt
Can i use it in test mode
Yup! You can expand the latest charge in Payment Intent retrieval API.
- Payment Intent retrieval API: https://stripe.com/docs/api/payment_intents/retrieve
- Expand an object, i.e.
latest_charge: https://stripe.com/docs/api/expanding_objects
How to retreive receipt url
Have you tried with Payment Intent retrieval API with expanding latest_charge field to get the receipt_url I mentioned above?
Yes its working
thank you for your support
I just want know hot to download that reciept
Only URL can be used, but can't be downloaded