#Amrux - Apple Pay React Native
1 messages · Page 1 of 1 (latest)
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
Brilliant thanks Pompey.
To link directly to what I'm referring to :
https://stripe.com/docs/google-pay?platform=react-native#react-native-create-payment-method
This creates a payment method I pass to my API, whereas I cant see this function for the apple pay variant
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?
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
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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?
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
Cool if you can give me any update on that , that'd be brilliant. Thanks!
https://github.com/stripe/stripe-react-native/issues/488 aha found something very interesting here, which proposes that we could use this :)