#w3ever

1 messages ยท Page 1 of 1 (latest)

real yewBOT
silk rose
#

Hello, what are you running in to?

odd patio
#

thanks for your swift reply.

#

I'm integrating Gpay, Paypal and Appley pay using Express checkout elelement.

#

but Paypal button and Apple button don't be displayed on Safari 11. 51 (Desktop) and iPhone.

#

but it works well on Chrome.

#

Paypal and Gpay works well on Chrome.

#

I think I follow guide correctly.

#

Domain is verified correctly.

silk rose
#

Can you send me the ID of the account that you verified this domain on?

odd patio
#

I've just open this link and I can see Paypal button and Gpay button on Safari on Demo page (safari)

#

I'm getting these error on Safari.

#

of course Paypal button won't be displayed on live but this is dev system.

#

so it is displayed on Chrome.

elder notch
#

Hello ๐Ÿ‘‹
Taking over

odd patio
#

just one second'.

elder notch
#

Additonally,

1/ Can you share the account ID where you've registered the domain?
2/ Are you using Stripe Connect?
3/ If you're using Stripe Connect, what kind of charges are you creating?
4/ What location are you testing from?

odd patio
#

Ok. I will provide them. but first please see this image.

#

I can see only Link button now. it means that Paypal and Apple pay are not available on Safari of my machine?

elder notch
#

Thanks, you not able to see the Apple Pay button in safari on the link I shared above points to Apple Pay wallet not being correctly configured on your machine.

It either doesn't have a valid Payment Method in the wallet or Apple just doesn't support Apple Pay in the location you're testing from.

odd patio
#

I'm Ukraine.

#

yes. understand.

elder notch
#

Is your test site hosted? if so, can you share the URL and test credentials?
I can check if I am able to see the Button on your site or not

odd patio
#

but why is not Paypal button available?

#

Ok.

#

Olsen1!!!

#

this is video on Chrome.

#

please follow this step on Safari.

elder notch
#

๐Ÿ‘

odd patio
#

I'm developer and I don't now how to get Account ID on Stripe. but Please see this image. domain is verified correctly.

elder notch
#

it might look something like acct_xxx

odd patio
#

ok. let me check

#

Oh. yes. ID is acct_1IQfT7EAXqGZrRbQ

elder notch
#

Do you use Stripe Connect?

odd patio
#

What do you mean?

elder notch
odd patio
#

yes. our system is a platform similar to Freelancing site.

#

so we use connect accounts.

#

for the freelancers (nannies on our system).

elder notch
#

What sort of charges are you creating? Direct charges or Destination Charges?

odd patio
#

yes. when creating Checkout session or Payment Intent, we use transfer data and so nannies can get payment directly when customer pay for service.

#

we contacted to stripe already and Paypal will be approved for the live after a few weeks.

#

but what i'm wondering now, why paypal button is not display for dev enviroment on Safari.

elder notch
#

Hmm actually for me, nothing shows up in safari (no paypal, no apple pay, no link)
I don't see an error either which is quite weird.

Can you share the code you're running when you click on "online payment" button?

odd patio
#

ok. just one second./

#

this is react component for modal when click "online payment" button

elder notch
#

can you share code for getStripe(...) function too?

odd patio
#

Ok.

#

import { loadStripe } from "@stripe/stripe-js";
import { appConfig } from "config/config";

let stripe: any = null;

export const getStripe = () => {
if (stripe) return stripe;
stripe = loadStripe(appConfig.stripe.publicKey!);
return stripe;
};

elder notch
#

okay, thanks.

Can you add a console log for expressCheckoutOptions function?
want to verify what's being passed on as options to the elements

odd patio
#

Ok. I will share log

#

this is log on my local.

#

not dev system.

#

so you can see unverified domain warning for Apple pay.

elder notch
#

Gotcha, hmm interesting..

odd patio
#

at least, I hope we can see Paypal button.

elder notch
#

Going to ask some collegues to take a look too

odd patio
#

thank you.

#

I will wait for you here.

tulip marlin
#

๐Ÿ‘‹

odd patio
#

Hello.

tulip marlin
#

I think this might have to do with the size of your div

#

Not positive but let's start there

#

Can you adjust the size of that div to make it really large for a test and see if that changes things?

#

I'm wondering if the sizing is fine for 2 wallets on Chrome (Google Pay + Paypal) but once there are 3 available then it doesn't like it.

odd patio
#

Ok. make sense. let me try it now.

#

is the same

tulip marlin
#

You just tested locally or you pushed to testing environment? I can't see the ability to open up the payment modal anymore

odd patio
#

locally.

#

at least, on local, paypal button should be displayed.

tulip marlin
#

Hmm okay but you see the same still. Did you just change something on the test site? I can't repro anymore. Having a repro link is helpful.

tulip marlin
#

Okay well there isn't a booking with a payment option anymore on your dev site

#

All 4 are "booked" or "requested"

odd patio
#

one second

real yewBOT
odd patio
#

Hello. I've added a new booking and please test it.

tulip marlin
#

Thanks

odd patio
#

๐Ÿ‘

tulip marlin
#

Alright so I also see some Console errors on Safari that I don't see on Chrome for your site. Looks like some CSP, access control checks for your database, and an issue with minimal-ui.

#

Is it possible your code is crashing somewhere before it can render ECE on Safari?

#

And are you setting minimal-ui ?

odd patio
#

yes. I can also see those error. so what's your opinion?

#

but I don't know about those.

#

what should i do for this?

tulip marlin
#

Well we will need to troubleshoot each one and see if those are blocking ECE from rendering

#

Let's start with minimal-ui since I feel like that may be the primary issue here in terms of ECE loading.

#

Where are you setting that?

odd patio
#

No setting.

tulip marlin
#

Okay wasn't sure if this was implicit from something else.

#

I'm not too familiar with that -- let me see what I can find on how to handle that error.

odd patio
#

thank you.

tulip marlin
#

Hmm wait it does seem like it is set in your header meta but actually that shouldn't matter if it is just being ignored.

#

Since you don't need that for ECE at all

#

If you want to make sure of that, you could remove from your meta tag and then test again real quick on both Chrome and Safari and make sure you see same behavior

odd patio
#

let me see

#

do you mean this meta tag?

#

<meta
name="viewport"
content="width=device-width, initial-scale=1, minimal-ui"
/>

tulip marlin
#

Yep

odd patio
#

removed it and tested but is the same on Safari and Chorme.

tulip marlin
#

I think the issue is with the other errors though. Like when I put a breakpoint where you render ECE that code never runs.

#

So yeah let's focus on those other errors

odd patio
#

ok.

tulip marlin
#

Can you see if adding a forward slash to the end of your fetch URL makes any difference?

odd patio
#

let me see

#

but we don't call any API to display buttons on this modal.

tulip marlin
#

Sure but this is something much earlier in your flow

odd patio
#

so do you think we should add slash to all api endpoints?

tulip marlin
#

One sec actually.

#

Checking something

odd patio
#

Ok. thank you.

tulip marlin
#

Alright so with breakpoints and stepping through I can see that it is indeed trying to load and I can even get a sliver of a button where I can pop up the Apple Pay payment modal:

#

So I think those other errors are red herrings here

#

And it really is something about the viewport

odd patio
#

wow. so what should i do?

tulip marlin
#

Can you try just simplifying as much as possible. Let's remove (or comment out) this part: {loading && ( <div className="d-flex justify-content-center align-items-center height-50px"> <HeyCircularProgress size={30} /> </div> )}

odd patio
#

ok

tulip marlin
#

Let's also remove the maxColumns and maxRows and let it just handle via auto right now

odd patio
#

ok

#

is the same

#

chrome still works.

tulip marlin
#

Kk can you remove the class settings from the outer div?

odd patio
#

ok

#

is the same

tulip marlin
#

K thanks for testing. I'm working on trying to repro from my side

#

One sec

odd patio
#

thank you.

#

Hello. I've just move Express checkout form from modal to main page.

#

it works now.

tulip marlin
#

Yeah that doesn't surprise me

odd patio
#

so I think it is modal issue.

tulip marlin
#

Right it is something with the sizing or scroll of the modal I think

odd patio
#

Ok. I will find solution

#

Thank you very much for your help.

tulip marlin
#

Sure

#

Let us know if we can help further

odd patio
#

๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘

#

sure. thanks again. bye.