#ndelanos-fetch-card
1 messages · Page 1 of 1 (latest)
@warm basin I dont really follow what you mean. You can fetch the PaymentMethod server-side via https://stripe.com/docs/api/payment_methods/retrieve for example, does that work?
@urban oak I can't use PaymentMethod because I don't want the credit card informations to be passed to Stripe by my server. I'm using Setup Intent, so I let Stripe handle the security for me. While doing that I get as a response a key that start with seti_1K....... Unfortunately with this type of Setup Intent I can't get partial credit card infos.
you're misunderstanding how this works
You have a SetupIntent, that SetupIntent is confirmed and as a result it creates a PaymentMethod in the API pm_123456 that represents those card details
you can retrieve that safely via the API without getting any sensitive information, you'll get the card's expiration, brand, last4, as you need
Ok I think I got it. Thanks @urban oak
I'll try
@urban oak Just out of curiosity, are you working for Stripe ?
I am yes!