#Dmitrii
1 messages · Page 1 of 1 (latest)
Hi, taking a look here
Hi, thanks!
I do not believe so, can you share what you're really trying to do here?
~~You can retrieve the user's Payment Method and look at the last 4 digits of the card: https://stripe.com/docs/api/payment_methods/customer~~
I want to show customers what card was used for purchases. The only stored information is their customer_id and payment intent id
Thanks, I'll try to use it!
I'm also thinking to leverage this https://stripe.com/docs/api/payment_intents/retrieve?lang=php endpoint
@idle pier If the user has more than one payment method, is there a way to find the certain payment method by payment intent id?
Let me test this real quick
yeap, you can expand, https://stripe.com/docs/expand the payment_method, https://stripe.com/docs/api/payment_intents/object?lang=php#payment_intent_object-payment_method when retrieve the Payment Intent. From this expand, you can attain the last 4 of the card as well.
Thank you so much! I've never worked with the expand before
It's a great feature that allows you to make a fewer API calls.