#zleb
1 messages · Page 1 of 1 (latest)
retrieve setup_intent.payment_method from the PaymentMethods API, and then look at the fields in https://stripe.com/docs/api/payment_methods/object#payment_method_object-card
you could also expand the latest_attempt field of the SetupIntent and look at the attempt->payment_method_details https://stripe.com/docs/api/setup_attempts/object#setup_attempt_object-payment_method_details-card
how do i get it? i could only see {{baseUrl}}/v1/setup_attempts?setup_intent= from postman
sorry i see it returns the card details there also
thank you!
there's a direct link to the relevant attempt for the given SetupIntent, at https://stripe.com/docs/api/setup_intents/object#setup_intent_object-latest_attempt , so you can use https://stripe.com/docs/expand to e.g. expand:["latest_attempt"] when retrieving the SetupIntent and then you'll have access to everything