#dcx86-future-usage

1 messages · Page 1 of 1 (latest)

hybrid warren
#

Hi 👋 can you elaborate on what you mean by the following?

...I see that is no longer possible to have that as a single step and is included during the purchase flow

mint pendant
#

Sure. To add a payment method in our react native app we follow the next steps:

  1. We collect card information using stripe CardField component
  2. We make a request to our server to get the client secret
  3. Then we call Stripe.confirmSetupIntent and we pass to it the client secret and user email
  4. From the setup intent that we get back we send to our server the paymentMethodId
  5. From our server we get back the card response object that we use to show to our users what cards they have added in our app

I expected that to see these card that the user add inside the stripe payment sheet.

Could it be that our approach to save user cards is wrong?

Is there another way to add payment methods and remove payment methods without making a purchase?

hybrid warren
#

Sorry about the delay! Those steps look like the right way to add payment methods without making a purchase.

long hill
#

@mint pendant You can setup and attach or detach payment methods without payments, yes. That sounds like you're already doing that so I'm not sure what you're looking for.

#

As for the payment sheet showed the customer payment methods, can you share which platform you're testing on and a specific customer ID you're testing with?

mint pendant
#

Thank you for your asnwers @hybrid warren and @long hill .

Im using react-native and testing on iOS device at the moment. What I noticed was that payment methods that I add using the steps described above don't show up in the stripe payment sheet `useStripe().presetPaymentSheet().

I'm not sure why, could it be that I missed something? how can I make them appear in the strip payment sheet too?

long hill
mint pendant
#

I can't quite see how this will fix my problem. It seems to be a feature to return back to the app after 3D Secure. But I can give it a try anyway, since this is a good thing to have.

Why is this iOS only? does Android automatically handles this?

long hill
#

This is a technical requirement of the platform to support the saved cards, and yes for Android this is handled by the underlying SDK automatically

mint pendant
#

Thats great. Good to know, thanks.