#reikoBooop
1 messages · Page 1 of 1 (latest)
Hi @ashen schooner Can you tell me the problem so that I can help you?
Hi Jack, I am having issue with Apple pay and Google pay. We initially had issue with Apple pay and with your team's advise, its now working with Apple pay but unfortunately Google pay is not working with connected account which is made with live mode key.
Google pay is working fine for the connected account with test mode key but not working on Apple pay
I'm a bit confused, so both Google Pay and Apple Pay are not working?
its probably easier if you can re-open the conversation from last week, it is confusing
Let me summarise it, we are using stripe.paymentRequest for wallet payment.
initially Apple pay was not working and issue was caused because the connected account was created with test mode key and not live mode key. So we created account with live mode key. Now, apple pay is working to the connected account for Apple pay but other connected accounts (which was made with test mode key) Google pay is not working and giving me error of Request failed unexpected developer error, please try again later.
you can re-create this error with https://consumer.dev.booop.it/
The New Way to Shop and Checkout
this connected account was made within Stripe dashboard in non-test mode
OK, so if I understand correctly, Apple Pay is working now, but not Google Pay?
yes that is correct
Can you share with me your merchant ID? you can find it from the Stripe Dashboard -> Settings ->Account Details
acct_1KxKn7COApIvyfoa
https://stripe.com/docs/stripe-js/elements/payment-request-button can you open this page in the same device and see if Google Pay Button is showing?
yes I can see the button. with our checkout page, I can also see the Google button and follow the steps but then I try to finalise the payment within the popup, it gives me error message at the end
What kind of error message?
its just popup with 'Request failed unexpected developer error, please try again later' but no error message on console besides
unable to download payment manifest "https://pay.google.com/gp/p/payment_method_manifest.json".
Are you testing from a phone or desktop?
I am testing from a phone
Do you encounter the same error when testing from a desktop?
I actually never tested on a desktop
Should I test it on desktop?
I just tested on desktop and same result
but got different error message on console
pay.js:187 DEVELOPER_ERROR in loadPaymentData: Invalid stripe:publishableKey for current environment. Make sure you are using Stripe's test key.
Hmm, did you use the test publishable key when initializing Stripe.js ?
yes I am using the test publishable key...
But the error message says otherwise, can you double check?
I did have a look again but using the correct publishable key plus Google pay does not work for the connected account which was made with live mode key, for any other connected account that was made with test mode key, google pay works fine
is that mean for connected account made with live mode key, I can only use publishable key starting with pk live ?
Did you create the account with live key?
yes the account is created with live key
OK, you can only use live key in this case since the account was connected through a live key
Just checking if I use live key for the live account, would charge happens?
Yes it'll create real charge if you use live key.
I'd suggest you to use test key with connected account created with test key during development.
Right, good to know.
Last time I spoke with your team when Apple pay was not working, it was pointed out that because the connected account needed to be created with live key, is there any way that Apple pay to work with just test key only? or Apple pay will only work for the connected account created with live key?
You can use test key to create a connected account and test Apple Pay. The important thing is that you need to use live key to register an Apple Pay domain for connected account
We tried to register the apple domain using live key for test connected account it was not working, that is why we had to create live connected account