#nicefellow1234
1 messages · Page 1 of 1 (latest)
In order to retrieve payment method information in PaymentIntents retrieval API, you can expand payment_method field to get the last 4 digit: https://stripe.com/docs/api/expanding_objects
Unfortunately, card bin is not returned as part of the response
I see, will you guys return this as well so that the matching card can be made even more specific to avoid matching with any other card.
@shrewd zinc I have looked at it so this way I can fetch payment intents with matching payment method but we don't want to loop through all the payment intents just to look for the matching payment intents with the matching card number, that will be very inefficient. Is there anyway we can pass the card last 4 digits to the endpoint so that the results returned are only the matching ones and not all of them?
I'll be stepping away, my coworker @errant dragon will be taking over
Hi! I'm taking over this thread.
What you are asking is unfortunately not possible. You will need to list all payment method with the API and then check the last 4 on your end.
You could speed this process up if you store the payment method object (with last 4) directly in your own database.
I see, that's bad. Braintree provides this functionality already. You guys should incorporate this functionality as well.