#develoop
1 messages · Page 1 of 1 (latest)
the deferred integration is quite new and we didn't release the mobile SDK functionality required for it at the same time as the web, unfortunately
so for now it's not possible but we will release new versions of the SDKs and update the guides at some point when it's ready(I can't give you a timeframe)
for now you'd just integrate in the traditional way : https://stripe.com/docs/payments/accept-a-payment?platform=react-native
We thought to use a component that show web page in the app and perform a redirect to stripe page like a web site; another option is to manually get payment method information, send it to the server by an api call and then use the .net client to link payment method to the cutomer. Which choice is the best?
the best choice is to use the PaymentSheet component as documented at https://stripe.com/docs/payments/accept-a-payment?platform=react-native
we implemented it for the payment procudere but we had to create a section of the app where the user can only manage their payment method
so we can't create a payment intent
well we don't really have a RN component that's just for viewing and managing existing saved payment methods. We have a few components in our native iOS/Android apps that can help but they're not exposed through the RN library as it's more focussed on the use case of payments.
So mostly you'd just build your own custom code where you list a customer's payment methods using https://stripe.com/docs/api/payment_methods/customer_list on the backend and populating a custom UI.
Or if it works for the use case you could use PaymentSheet with SetupIntents.
ok, so to get new payment method we had to implement a custom form using the card component provided by the react native sdk and use the api call on server side to link it to the customer?
well if the goal is just to add a new card, the best option is to use the SetupIntent
maybe try that out and see if it works for the use case you have in mind!
can we create a setupIntent each time the user need to manage his payment credential?
are u forced to create a paymentIntent immediately after closing the setupIntent procedure?
if you want to have the customer enter and save a new card, then you would use a SetupIntent yes.
no. And you would never do it that way (using a SetupIntent and then immediately a PaymentIntent), usually that's a mistake.