#zleb
1 messages · Page 1 of 1 (latest)
Do you mean you would like to retrieve the invoice number and the last four digit of the card with a given Payment Intent ID?
I'm not creating an invoice yet, so just a receipt ID when 'View Receipt' is clicked in the dashboard
and yes the censored CC number given the payment ID
Ah, I see! Thanks for sharing. You may use Payment Intent Retrieval API and expand latest_charge.
- Payment Intent Retrieval API: https://stripe.com/docs/api/payment_intents/retrieve
- Expand: https://stripe.com/docs/api/expanding_objects
You will be able to find receipt_number and last four digit under last4 in the lastest_charge