Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get last 4 digits of card from PaymentIntent object in Stripe PHP

Is it possible to get the last 4 digits of a card from the PaymentIntent object (not same as Charges API) using Stripe PHP SDK?

like image 824
gabogabans Avatar asked Oct 20 '25 04:10

gabogabans


1 Answers

You can get from Charge object included in PaymentIntent.

PaymentIntent->charges->data

https://stripe.com/docs/api/charges/object

like image 57
Jsowa Avatar answered Oct 22 '25 17:10

Jsowa



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!