#Žiga

1 messages · Page 1 of 1 (latest)

vocal jasperBOT
gentle hollow
#

Hi there

#

Posting second part of your question for easy access:

how can we collect card details with apple pay for future payments? What is the correct method of collecting card details with apple pay for future payments. Currently we’re using createPlatformPayPaymentMethod which charges customer’s card. What method of collecting this information works best for future payments. Or can we simple set item price as 0 to avoid charging card?```
#

For the first part of your question, yeah SetupIntents are what you should be using there. Whether or not an SCA flow will be required for future payments is up to the bank. SetupIntents reduce the likelihood that there will be one, but it still happens since it's up to the bank's discretion. For the second part of your question, you can use SetupIntents as well:
https://stripe.com/docs/payments/save-and-reuse?platform=web#apple-pay-and-google-pay

Learn how to save card details and charge your customers later.

idle ridge
#

but does setup intents also open apple pay modal?

#

also im using react native here

gentle hollow
#

The above link I shared has a React Native guide

#

^ links specifically to the React Native guide's apple pay section but really recommend reading the whole article. Apple Pay modal should show

idle ridge
#

is this also posible without this new elements?

#

Currentnly we just have a CardField for card details and a button for apple pay

gentle hollow
#

Hi sorry for the delay. One sec

#

What's the button you're using?

#

Can you link the component?

idle ridge
#

currently just a normal button which than calls createPlatformPayPaymentMethod

gentle hollow
#

Ah ok. I think with ReactNative, you'll need to use the Payment Sheet

idle ridge
#

what about without the payment sheet? Switching to this requires a bit more work/discussions so it's not a simple change

gentle hollow
#

Let me see if I can bring in a colleague who knows a bit more about this

idle ridge
#

ok thanks a lot

quartz kraken
#

👋 stepping in and catching up

#

Are you looking to save card w/ Apple Pay and take a payment or just set up future payments?

idle ridge
#

save card and use it later

quartz kraken
#

Gotcha, then yeah you want a SetupIntent and confirmPlatformPaySetupIntent

idle ridge
#

will both of this get card details. go through the sca if needed and not create a charge on users card?

quartz kraken
#

Yep

#

To be clear, Apple Pay and Google Pay handle SCA inherently

#

So you shouldn't see 3DS when using a wallet

#

But it properly sets them up for the SCA exemption in the future

idle ridge
#

ok so to duble check
i need to use confirmSetupIntent to get card details from CardField and then get back setupIntent
and for apple pay I need to use confirmPlatformPaySetupIntent which opens up native apple pay modal and returns back the intent?

quartz kraken
#

You got it

idle ridge
#

great. thanks a lot for the help