#Amrux - Apple Pay React Native

1 messages · Page 1 of 1 (latest)

umbral gazelle
#

Hello, looking in to this

#

Hello, looking in to this, it should be similar to the Google Pay flow but I am not immediately familiar with our RN SDK. Will get back with what I can find

coarse carbon
umbral gazelle
#

Hey sorry for the wait, I am still having trouble finding this and am consulting my colleagues.

#

I think that if nothing else, you can do the Apply Pay flow but with a SetupIntent and specifying an amount of 0 to the payment sheet

#

Are you saving these to immediately take another payment or to start a subscription or something?

coarse carbon
#

We're immediately taking them, as I say for google pay it's working perfectly...
The thing that I don't have for the apple pay is the "client secret" as our integration before didnt return this to the frontend

#
        clientSecret
      );

Referring to that :) . That's the piece of the puzzle I'm struggling with, as Google Pay you can just pass the payment method to the backend without needing to do anything extra on the FE

umbral gazelle
#

Ah, with that flow, they want you to create a PaymentIntent beforehand and send it to the client side. It might be best to do that in both bases and follow the PaymentIntent flow for Google Pay as well
You can save the payment method while making payment on the payment intent by setting the setup_future_usage property https://stripe.com/docs/api/payment_intents/object#payment_intent_object-setup_future_usage

coarse carbon
#

Ah okay I see, currently not a flow we're following. Would need to take that away as a bigger piece of work.
Is there no mean to (in the meantime) do it the way we were doing it prior?

umbral gazelle
#

Good question. Checking in to that again. From our Apple Pay page it sounds like that may not be an intended use case for Apple Pay

coarse carbon
#

Cool if you can give me any update on that , that'd be brilliant. Thanks!

umbral gazelle
#

We have that doc as well

#

Happy that we could find options for you, apologies that it took me a bit