#lennartzellmer-q
1 messages · Page 1 of 1 (latest)
@drowsy furnace hello there
@drowsy furnace it's not possible to get the PaymentMethod ID unfortunately in that case
you'd have to contact your backend and have it retrieve the SetupIntent for you and send the information back
what you can I think do is :
STPAPIClient.shared.retrieveSetupIntent(withClientSecret: clientSecret) { retrievedSI, retrieveSIError in ......
from when you handle the outcome of paymentSheet.present() , if you keep a reference to the clientSecret in a local variable
that way you can get the PaymentMethod ID, but unfortunately nothing else like the last4/brand, just the ID (this is feedback I've raised to the team building the SDK a couple of times, it's not ideal at all)