#Jewe-googleapplepay
1 messages ยท Page 1 of 1 (latest)
Hi there!
Which Stripe integration are you using to accept payments? Checkout Session, Payment Element, Payment Request Button, etc.?
Hi. Thanks for getting back to me so quickly.
We are using Elements
Got it! So the Payment Element works, but you don't see the Apple/Google Pay options?
Can you share your account ID (acct_xxx)? It's at the top of this page: https://dashboard.stripe.com/settings/account
Also can you confirm if you see a Apple/Google pay button at the top of this page? https://stripe.com/docs/stripe-js/elements/payment-request-button
The account id is acct_1FnhxgDgUJaRazQV
I can see the google pay button on my android phone, yes
Thanks! And could you share a URL where I can reproduce the issue?
Sure
this is an UK based device, where it works all good
and this is one in Germany, where the buttons do not show
you should see the buttons once you click "Continue" on the first page
Thanks! Give me a few minutes to look into this.
So just to clarify: you are using the Payment Request Button for Google/Apple Pay.
And I confirm that I don't see the button on this url https://charge.ubitricity.com/ozhr
Looking into this...
Yes, this is correct
Any update on this?
soma has to step out soon but I am looking in to this. Can you send me the two account IDs that you are using?
Unfortunately not, as far as I can tell these wallets are supported in both countries.
Hi @south veldt . Thanks for taking over.
The two account ids are
acct_1FnhxgDgUJaRazQV (Germany)
and acct_18vmtELK3ksSjRk1 (UK)
Thank you. Checking in to them.
And just to confirm, you are setting this via the stripeAccount field in your options
var stripe = Stripe('pk_test_51JCsS9Jmquaq3LbpDOtbzbi42050A8cbOrlVPfPQmZfi64xxRjPLDhJghJxxL88a8g6AFhegLVLm3QjoBjbUALpq00ZOzi1I6S', {stripeAccount: 'acct_1234'});
https://stripe.com/docs/js/initializing#init_stripe_js-options-stripeAccount
let me double check the implementation
well, we actually create the stripe instance with different secret key, based on the country
private createStripeInstance() {
return
Stripe(this.paymentFlow.getStripeKey(this.deviceData.countryCode));
}
and then trigger the payment request like
const paymentRequest = this.stripe.paymentRequest({
country: this.deviceData.countryCode,
currency: this.deviceData.tariff.currency.toLowerCase(),
total: {
label: this.deviceData.chargePointId,
amount: 600,
},
requestPayerName: true,
requestPayerEmail: true,
});
Gotcha. Good to know. Still looking in to this. I will reach out to my colleagues for help and will let you know what we can find
And which URL goes to which account that you linked to?
@fathom lichen unarchived. Let's talk here
Perfect. Thank you!
To answer the last question:
https://charge.ubitricity.com/ goes to the german account (acct_1FnhxgDgUJaRazQV)
https://mysimplesocket.com/ goes to the UK account (acct_18vmtELK3ksSjRk1)
It is using the same backend actually
So i don't think it would be a code issue
As the UK flow works just fine
Both Google and Apple Pay are activated for both accounts here: https://dashboard.stripe.com/settings/payment_methods
and for Apple Pay, the domains are added and verified here: https://dashboard.stripe.com/settings/payments/apple_pay
Okay, thanks for the context. I'm juggling a few threads, so let me take a few minutes to get up to speed on this one
๐
Don't know how long i will be online. It's gettings quite late in Germany already.
Would it be possible to get back to me via email otherwise?
Yeah, if you open a thread via support and summarize the issue we can grab it: https://support.stripe.com/contact/email
Make sure to mention that you were talking to us on Discord.
Okay, will do. But i also will be available a bit longer here. Just in case
This is a head-scratcher for me, so I'm going to ask a colleague to see if they have an idea of what could be going wrong
Thanks a lot. I totally understand you. It's puzzling quite a few people over here.
@fathom lichen how can I test?
Hi @vast raptor
https://mysimplesocket.com/kztp
this is an UK based device, where it works all good
https://charge.ubitricity.com/ozhr
and this is one in Germany, where the buttons do not show
you should see the buttons once you click "Continue" on the first page
This is all test mode? Because even on the UK the button you have is disabled and Ican't click it says "forbidden"
Do you have unminified code? Have you added logs to understand what part of the code is and isn't called?
it's not easy to debug you redirect to another page after the button click and I can't reload and add breakpoints it just breaks the page because it loses the code in theURL
this is actually production environment with test devices. So it would require real credit cards.
The button will be enabled once the checkboxes are checked and an email is entered.
But also, if you can see the disabled button that already means it's working.
for example what does isMobileWalletPaymentSystemEnabled(h) { return this.getTreatment("direct_access_mobile_wallet_payment_system", { countryCode: h }) } do?
I see the button on UK but it's disabled. And I don't see it on the Germany one like you said but I can't do code debugging because I can't reload the page
and you have a ton of code here that seems purely spcific to your integration
it's checking with split.io if the feature should be enabled or not. i verified though, that it actually is enabled.
I don't know if/how i could give you access to the codebase, actually.
I don't want access to the code, I'm just explaining what makes debugging hard
minified code, and the fact that we can do breakpoints and just reload the page
I think it'd help to do a minimal repro first
with just basic Stripe code and nothing else to confirm it;s an account issue (which it might be)
@fresh grove is taking over but you said you were EU based so I think working with our support team would be better, we help there too
Okay. i will prepare a small test. Thanks
If you write in with this example and mention my username or koopajah's we can find your email and grab it for further investigation
(include that small demo/repro when you have it)
Perfect. Will do it tomorrow. Sun is about to go down here. ๐
Thanks for your help so far.
Great, sounds good! have a good night