#mshell - Google Pay button

1 messages ยท Page 1 of 1 (latest)

fringe scroll
#

Hello, are you also testing with the same URL each time?

#

My first guess is that you may be testing both with localhost and with some public https URL. Google Pay requires https so it doesn't show up on localhost tests but will show up if you use ngrok or a hosted page or something

near igloo
#

It is on a public server with HTTPS enabled. You can test it by going here: https://howwouldyoudescribeme.org/donate/. Just add any item to the cart, click Proceed to Checkout, then enter any name and email and it will display the payment form.

fringe scroll
#

Thanks for the link. Haven't gotten to check it out yet but will do shortly.

#

Have you been changing your code between tests when it works vs doesn't work?

near igloo
#

Should the Google Pay payment request button appear every time someone views the page with the Chrome web browser (regardless of platform)?

fringe scroll
#

Yep, as long as they have a GPay wallet set up the button should show up

near igloo
#

Also, I am getting this error in the console. The strange thing is that I don't have "pay.google.com" anywhere in my code: [Report Only] Refused to compile or instantiate WebAssembly module because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self' https://pay.google.com".

vale spoke
#

๐Ÿ‘‹ Pompey had to step away, give me a moment to catch up ๐Ÿ™‚

vale spoke
#

I couldn't find any references to the error on our end, its possible something changed on google's servers.
(PaymentElement's Google Pay integration uses native google pay API underneath)