#mrrobot_code

1 messages · Page 1 of 1 (latest)

cunning driftBOT
#

👋 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/1460546030377504913

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

lusty pilot
#

👋 Hi there! Let me take a look

#

It looks like on mobile devices, Google Pay might not be available for Checkout Sessions when loaded inside a webview, unless using Chrome Custom Tabs

eager plover
lusty pilot
#

Yes, I see that as well. But I believe that's not using Checkout Sessions. I'm trying to double-check this behaviour…

lusty pilot
eager plover
lusty pilot
#

Alright. Can you share a Checkout Session ID (cs_test_…) which you load in a WebView, but do not see Google Play?

eager plover
#

Okay, please wait a moment.

#

cs_test_a1QzxhP2VhHLa8VGERgrGOa13JtNErtqZtCT0KhRVzk3LxWjbWUA240ACi

cunning driftBOT
fallen sapphire
#

hi! I'm taking over this thread.

eager plover
fallen sapphire
#

I just double checked with a colleague, and looks like Google Pay is just not supported when using the PaymentElement in a webview. so what you see is expected.

eager plover
#

Alright, is Chrome Custom Tabs definitely a feasible solution?

#

And can you tell me the reason why the test page can properly render Google Pay in a webview?

fallen sapphire
#

the test page is not using Checkout Session + Payment Element, that's why you can see Google Pay.

eager plover
#

Can I use the same integration method as this test page to achieve the integration of Google Pay, or can I only use Chrome Custom Tabs?

fallen sapphire
#

if you use Payment Intent + Payment Element, then Google Pay should work in a webview, assuming you follow all requirements listed in the link I shared above.