#daniyal_11692
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- daniyal_11692, 34 minutes ago, 68 messages
- daniyal_11692-local-google-pay-test, 19 hours ago, 12 messages
- daniyal_11692, 23 hours ago, 4 messages
- daniyal_11692, 5 days ago, 48 messages
- daniyal_11692, 5 days ago, 5 messages
- daniyal_11692, 5 days ago, 21 messages
and 4 more
hi, when i click on gPay as an option from payment element. this error is shown in console
and is Google Pay working or not?
not working
can you share a link to reproduce the issue?
here's a screen cast on how to reproduce
you should be in iphone SE in repponsive options then GPAY will appear
just like in screencast
Can you share your code that handles the 'place order' click and triggers confirmPayment?
async function confirmPaymentSetup() {
var button = document.getElementById('submit');
button.innerText = pleaseWaitText;
button.disabled = true;
elements.submit();
await stripe.confirmSetup({
elements,
clientSecret,
redirect: 'if_required'
}).then(function (result) {
console.log(1)
console.log(result);
doPost({ loading: true });
if (result.error) {
button.innerText = buttonText;
button.disabled = false;
doPost({ loading: false, error: true, message: result.error.message });
} else {
doPost({ loading: false, error: false, message: authorizedText, response: result });
}
})
}
const stripe = Stripe(stripePublishableKey, { locale: getQueryParam('lang'), apiVersion: '2020-08-27', });
const stripeElementOptions = {
mode: 'setup',
currency: billingCurrency,
paymentMethodTypes: ['card']
}
I think you need to await elements.submit() as it's async and returns a Promise: https://stripe.com/docs/js/elements/submit