#alabrecq
1 messages · Page 1 of 1 (latest)
Hello! Yeah, you should be able to do this from mobile. Hang on while I find what you need...
The STPSetupIntent should have the paymentMethodID after the Setup Intent is confirmed: https://stripe.dev/stripe-ios/stripepayments/documentation/stripepayments/stpsetupintent
That's for iOS.
Thanks! This seems promising and what we've been looking for. How would we get access to the STPSetupIntent after the payment sheet has been submitted by the user?
You can use the STPAPIClient to retrieve it: https://stripe.dev/stripe-ios/stripepayments/documentation/stripepayments/stpapiclient
But I thought you got it after confirmation, let me check on that...
Yeah we were thrown a bit because we thought the logical place we'd access it was from a payment sheet or flow controller callback.
If there is something there we've missed that would be awesome. But otherwise I'm exploring ApiClient now 👀
Yeah, I guess all you get back is the PaymentSheetResult which is just an enum: https://stripe.dev/stripe-ios/stripepaymentsheet/documentation/stripepaymentsheet/paymentsheetresult
So fetching the Setup Intent after the fact is probably your best bet.
Ok! I'll loop back with our team about this and see if we can make a breakthrough with that. Thank you!
Some handy links for the mobile SDK API references are this one for iOS: https://stripe.dev/stripe-ios/documentation/stripe/
And this one for Android: https://stripe.dev/stripe-android/