#Jewe-googleapplepay

1 messages ยท Page 1 of 1 (latest)

sly cargo
#

Hi there!

#

Which Stripe integration are you using to accept payments? Checkout Session, Payment Element, Payment Request Button, etc.?

fathom lichen
#

Hi. Thanks for getting back to me so quickly.
We are using Elements

sly cargo
#

Got it! So the Payment Element works, but you don't see the Apple/Google Pay options?

fathom lichen
#

The account id is acct_1FnhxgDgUJaRazQV

#

I can see the google pay button on my android phone, yes

sly cargo
#

Thanks! And could you share a URL where I can reproduce the issue?

fathom lichen
#

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

sly cargo
#

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.

fathom lichen
#

Yes, this is correct

fathom lichen
#

Any update on this?

south veldt
#

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.

fathom lichen
#

Hi @south veldt . Thanks for taking over.
The two account ids are
acct_1FnhxgDgUJaRazQV (Germany)
and acct_18vmtELK3ksSjRk1 (UK)

south veldt
#

Thank you. Checking in to them.

fathom lichen
#

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,
    });
south veldt
#

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?

tidal relic
#

@fathom lichen unarchived. Let's talk here

fathom lichen
#

Perfect. Thank you!

#

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

tidal relic
#

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

fathom lichen
#

๐Ÿ‘

#

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?

tidal relic
#

Make sure to mention that you were talking to us on Discord.

fathom lichen
#

Okay, will do. But i also will be available a bit longer here. Just in case

tidal relic
#

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

fathom lichen
#

Thanks a lot. I totally understand you. It's puzzling quite a few people over here.

vast raptor
#

@fathom lichen how can I test?

fathom lichen
vast raptor
#

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

fathom lichen
#

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.

vast raptor
#

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

fathom lichen
#

I don't know if/how i could give you access to the codebase, actually.

vast raptor
#

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

fathom lichen
#

Okay. i will prepare a small test. Thanks

fresh grove
#

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)

fathom lichen
#

Perfect. Will do it tomorrow. Sun is about to go down here. ๐Ÿ™‚

#

Thanks for your help so far.

fresh grove
#

Great, sounds good! have a good night