#hungleviet_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1354710103890067596
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
with google Pay currently I use createGooglePayPaymentMethod and I was succesfully create payment method but now I dont know what to do
How do you integrate with Stripe? Are you using Payment Sheet?
Could you share the doc link you're following?
Payment Sheet is pre built UI right?
here is the docs https://docs.stripe.com/google-pay?platform=react-native#react-native-create-payment-method
Payment Sheet is the prebuilt UI. You shouldn't need a separate integration for Google Pay if you use Payment Sheet.
Google Pay will only be shown when you're on Android device, but the screenshot you share looks like an iOS device.
So I can use Payment Sheet for both google pay and apple pay?
Can you tell me the flow how would it work? like step by step
Yes! Payment Sheet supports both Google Pay and Apple Pay on the device that's supported. This is the integration guide: https://docs.stripe.com/payments/accept-a-payment?platform=react-native
It's expected that Google Pay won't be shown on iOS device like the screenshot you shared.
Google Pay button will only be shown on Android device
what about other method like presentApplePay, presentGooglePay? @stoic iris
I felt overwhelm dont know what I should do
presentApplePay or presentGooglePay should only be used when integrate with them using your own button, not with Payment Sheet
If you're using Payment Sheet that handles all the payment method types, you shouldn't need to use these two payment methods
I'd recommend checking this guide: https://docs.stripe.com/payments/accept-a-payment?platform=react-native
For Apple Pay, check the configuration here: https://docs.stripe.com/payments/accept-a-payment?platform=react-native#react-native-apple-pay
For Google Pay, check the configuration here: https://docs.stripe.com/payments/accept-a-payment?platform=react-native#react-native-google-pay
These are the only 3 docs you need to accept Apple Pay and Google Pay payments on Payment Sheet
No other integration is required
I have read all of them but still get stuck
"own button" means not prebuilt button like PlatformPayButton right?
I guess I have to go with the "own button" flow because I have "done" button as here
@stoic iris can you please support me
Thanks for waiting! Discord is busy now and will take time to respond
Ah I see! In this case, this is not considered as Payment Sheet.
For Google Pay, this is the guide to follow: https://docs.stripe.com/google-pay?platform=react-native
For Apple Pay, this is the guide to follow: https://docs.stripe.com/apple-pay?platform=react-native
Why are you creating the Google Pay payment method instead of using confirmPlatformPayPayment as suggested in the Google Pay guide?
Because I want confirm payment at BE side
also confirmPlatformPayPayment does not exist in version 2.0.0 man
Please before we jump into the code, methods to use can you wrapped the payment flow of stripe for google pay and apple pay for me. I followed the docs but do not understand and now I get stuck
What is BE?
Backend
Let's step back a bit here. Which stripe-react-native are you using, so that I can recommend the integration accordingly? The latest stripe-react-native is v0.43.0 unlike v2.0.0 like what you mentioned: https://github.com/stripe/stripe-react-native
I use v2.0.0