#raul-googlepay-test

1 messages · Page 1 of 1 (latest)

fluid ridgeBOT
west obsidian
#

raul-googlepay-test

#

GooglePay and all wallets require HTTPS by default, are you using HTTPS?

white mulch
#

yes, I'm using HTTPS

west obsidian
#

If you don't see the GPay button in Chrome then it means you haven't properly configured Google Pay in your own browser first

white mulch
#

I did a test using the private key live, and google play appears, but using the private key test not wroking

#

this is my code

#

const optionsPayments = {
mode: 'subscription',
amount: 1099,
currency: 'usd',
paymentMethodCreation: 'manual',
appearance: {
/.../
},
};
const elements = stripe.elements(optionsPayments);
const paymentElement = elements.create('payment',{
layout: {
type: 'accordion',
defaultCollapsed: false,
radios: false,
spacedAccordionItems: true
},
});
paymentElement.mount('#payment-element');

west obsidian
#

Let's ignore the code entirely for a secon, this is unlikely to be a code issue. It's more likely a configuration issue in your browser

white mulch
#

ok, but one question

#

why google play is showing when I use the public key live ?

open vessel
white mulch
#

let me check

#

"Caution
Either your browser does not support the Payment Request API, or you do not have a saved payment method. To try out the Payment Request Button live demo, switch to one of the supported browsers below, and make sure you have a saved payment method."

open vessel
#

Sounds like you have your answer. You need to have a payment method saved on a compatible browser

#

What browser are you using?

white mulch
#

Chrome

#

sorry for bother you with this question, I will check the payment method save on the browser

open vessel