#hungleviet_api

1 messages ¡ Page 1 of 1 (latest)

light turtleBOT
#

👋 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.

weak prawn
#

with google Pay currently I use createGooglePayPaymentMethod and I was succesfully create payment method but now I dont know what to do

stoic iris
#

How do you integrate with Stripe? Are you using Payment Sheet?

#

Could you share the doc link you're following?

weak prawn
stoic iris
#

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.

weak prawn
#

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

stoic iris
#

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

weak prawn
#

what about other method like presentApplePay, presentGooglePay? @stoic iris

#

I felt overwhelm dont know what I should do

stoic iris
#

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

#

These are the only 3 docs you need to accept Apple Pay and Google Pay payments on Payment Sheet

#

No other integration is required

weak prawn
#

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

stoic iris
#

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?

Learn how to accept payments using Google Pay.

Allow customers to securely make payments using Apple Pay on their iPhone, iPad, or Apple Watch.

weak prawn
#

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

stoic iris
#

What is BE?

weak prawn
#

Backend

stoic iris
weak prawn
#

I use v2.0.0

stoic iris
#

We don't have v2.0.0 for stripe-react-native SDK

#

Where did you get that from?

#

The latest version is only v0.43.0

weak prawn
#

"@stripe/stripe-react-native": "0.20.0",
here is what I use

#

hi @stoic iris