#olegdm
1 messages · Page 1 of 1 (latest)
i use it for add new cart
My question is: How can I check which card the user selects in the modal?
why do you need this exactly?
i have custom screen with checkout and for add payment method i use PaymentSheet
i have ReactNative app and use usePaymentSheet hook to add new payment method
so far I'm following
also in this PaymentSheet modal user can change cart for payment
i need to know what cart user select
why not just use this https://stripe.com/docs/elements/customer-sheet?platform=react-native
you wouldn't have to do 2 separate integrations
This feature is currently in beta for React Native.
and i use previous version Stripe
you can get access to the beta
okay so with PaymentSheet it's impossible ?
I really don't like to encourage developer to waste their time in developing something that we can provide to them out-of-the-box
i use 0.29 version @stripe/stripe-react-native
and it doesn't have this Customer Sheet
that's why i used PaymentSheet
you can always update
You can call https://stripe.dev/stripe-react-native/api-reference/index.html#retrievePaymentIntent after presentPaymentSheet resolves and the paymentMethodId field(https://stripe.dev/stripe-react-native/api-reference/interfaces/PaymentIntent.Result.html#paymentMethodId) on the returned PaymentIntent should be present, if that helps you accomplish what you're looking for.