#raul-googlepay-test
1 messages · Page 1 of 1 (latest)
raul-googlepay-test
GooglePay and all wallets require HTTPS by default, are you using HTTPS?
yes, I'm using HTTPS
What do you see on https://stripe.com/docs/stripe-js/elements/payment-request-button
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
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');
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
What do you see on https://stripe.com/docs/stripe-js/elements/payment-request-button
Hi there 👋 taking over, as my colleague needs to step away
Can you please respond to this?
What do you see on https://stripe.com/docs/stripe-js/elements/payment-request-button
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."
Sounds like you have your answer. You need to have a payment method saved on a compatible browser
What browser are you using?
Chrome
sorry for bother you with this question, I will check the payment method save on the browser
Try adding a payment method here: https://payments.google.com/payments/#paymentMethods