#atul-receipt

1 messages ยท Page 1 of 1 (latest)

small sentinel
#

๐Ÿ‘‹ Happy to help

#

Are you referring to the email receipt of the successful payments?

#

Or invoices?

tribal stone
#

susccessful payment

small sentinel
#

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:

  1. Retrieve Payment Intent list: https://stripe.com/docs/api/payment_intents/list
  2. Look for charges.data[0].receipt_url under 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
  3. 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.

tribal stone
#

ok thanks

small sentinel
#

No problem! Happy to help ๐Ÿ˜„

tribal stone
#

One more querry

#

We get paymnet intent null sometimes, whats the reason to get pyament_intent = null

small sentinel
#

Which API are you using that returned you payment_intent=null?

tribal stone
#

payment.retrieve