#ndelanos-fetch-card

1 messages · Page 1 of 1 (latest)

urban oak
warm basin
#

@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.

urban oak
#

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

warm basin
#

Ok I think I got it. Thanks @urban oak

#

I'll try

#

@urban oak Just out of curiosity, are you working for Stripe ?

urban oak
#

I am yes!