#vidyaanakru_33974
1 messages · Page 1 of 1 (latest)
First thing I would check is if your wallet is properly set up. Do you see a clockable google pay button in the demo section of this page? https://stripe.com/docs/elements/express-checkout-element
No
I do not see the Google Pay button
that indicates that either you don't have your wallet set up or you don't have cards in that wallet
So you can add your real cards to it, or Google has a test suite where it adds fake cards to your wallet in test mode https://developers.google.com/pay/api/android/guides/resources/test-card-suite
I can see Google Pay button in this link
https://stripe.com/docs/stripe-js/elements/payment-request-button
And when I click on the button, it picks up the card I have setup in the Payment Method in the associated google account
Interesting, I am surprised that this works for you with the payment request button but not the express checkout element
In theory those should be the same checks
When the chrome browser goes blank, do you see any error messages in your developer console?
I see this
Unable to download payment manifest "https://pay.google.com/about/ "redirect/"
One other interesting fact is, if I open the browse console and change the mode to responsive view, it works then
Yeah that is very strange that responsive mode would affect this somehow.
It works in this view
Would you happen to have a public test URL that I can see this myself on? If you can DM it to me I am happy to see if I see similar behavior
I have my app on sandbox
If it helps, I can share the steps to arrive at the checkout and payment
Please let me know
Sounds good, if you DM me the address and tell me the steps to checkout, I can test to see if I can reproduce the error
I have sent you the steps and a small demo to your DM
Thank you for the instructions. I'm testing but am currently seeing an error when I try to do guest checkout. Is that expected to work at the moment?
If you have test credentials that I could use to log in as well, that would also be helpful
There should be no errors. Is there a way we can do a screenshare. It might be faster.
Unfortunately I cannot do a screenshare. Will check in another browser
Can you let me know what error you see?
Apologies, now I am not having luck loading the page with the checkout button even. Not seeing a specific error for that unfortunately
How can I help you check the error with google pay? I am not sure how this issue can occur.
Not sure but trying to think on it. Maybe we can try some more standard debugging while I try to get to the right page. Does the page go blank as soon as you call confirmCardPayment? Otherwise, can you see what the last thing your code calls is when this page goes blank?
From what I can find, the manifest error is typically a red herring, so unfortunately no diagnostic errors from there
const paymentRequest = stripe.paymentRequest({
country: 'US',
currency: 'usd',
total: {
label,
amount,
},
requestPayerName: true,
requestPayerEmail: true
});
let canMakePayment = await paymentRequest.canMakePayment()
let isPaymentOptionAvailable = Object.values(canMakePayment).includes(true)
if (isPaymentOptionAvailable) {
paymentRequest.show()
}
This is my code
it stops at paymentRequest.show()
Nothings happens after this as you can see in the video demo I shared
paymentRequest.on('token', async (ev) => {
ev.complete("success")
resolve(ev.token.id)
})
This is the next set of code that is supposed to run
👋 stepping in as Pompey needs to step away
Catching up
Okay so to clarify, does the Google Pay payment modal open at all or no?
No
It does not open
The screen gets greyed out
Weird thing is, when I open the browse console and change it to responsive mode and click on Checkout, the payment modal shows and I can proceed with the payment. It works when I do it on a mobile browser. It does not work on a desktop browser.
Also,
This does not work for me - https://stripe.com/docs/elements/express-checkout-element
This does - https://stripe.com/docs/stripe-js/elements/payment-request-button
When you say "doesn't work" you mean when you open the payment modal it is greyed out like on your site?
Yes
The modal does not show
What do you see in dev console?
When trying to open the modal on https://stripe.com/docs/elements/express-checkout-element
Also, you aren't located in India, are you?
I see this
"Unable to download payment manifest https://pay.google.com/about/redirect/"
I am in India however, the same when tested in US networks also has the same issue
Hmm well we don't support India (https://support.stripe.com/questions/supported-payment-methods-currencies-and-businesses-for-stripe-accounts-in-india) so you shouldn't really be able to test it at all and I would assume that is at play here.
However you are saying that you have US-based folks who are also testing?
I see this in the stripe link
Sorry, I thought you were asking about the console errors in my app
Yes
That is correct.
The same code base when tested in US server also does not work
Okay one sec
My colleague passed along your testing credentials so let me reproduce
Ok. Thank you very much.
I need to log off now.
If you have any update kindly let me know, I can take a look at it in my AM.
Okay sounds good
Feel free to pop back in tomorrow and someone will be around to help
Sounds good.
Thanks very much