#w3ever
1 messages ยท Page 1 of 1 (latest)
Hello, what are you running in to?
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.
Can you send me the ID of the account that you verified this domain on?
Also do you see Apple Pay and PayPal in the "Try the demo" section of this doc? https://stripe.com/docs/elements/express-checkout-element
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.
Hello ๐
Taking over
If you open this page in safari, do you see an apple pay button?
https://stripe.com/docs/stripe-js/elements/payment-request-button
Attaching a screenshot
just one second'.
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?
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?
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.
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
but why is not Paypal button available?
Ok.
Olsen1!!!
this is video on Chrome.
please follow this step on Safari.
๐
I'm developer and I don't now how to get Account ID on Stripe. but Please see this image. domain is verified correctly.
if you go to profile and scroll all the way to the bottom
https://dashboard.stripe.com/settings/user
You'd find the account ID
it might look something like acct_xxx
Do you use Stripe Connect?
What do you mean?
Like are you building a setup like market place or something?
https://stripe.com/docs/connect
yes. our system is a platform similar to Freelancing site.
so we use connect accounts.
for the freelancers (nannies on our system).
What sort of charges are you creating? Direct charges or Destination Charges?
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.
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?
ok. just one second./
this is react component for modal when click "online payment" button
can you share code for getStripe(...) function too?
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;
};
okay, thanks.
Can you add a console log for expressCheckoutOptions function?
want to verify what's being passed on as options to the elements
Ok. I will share log
this is log on my local.
not dev system.
so you can see unverified domain warning for Apple pay.
Gotcha, hmm interesting..
at least, I hope we can see Paypal button.
Going to ask some collegues to take a look too
๐
Hello.
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.
You just tested locally or you pushed to testing environment? I can't see the ability to open up the payment modal anymore
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.
I didn't update dev system. just test on local.
Okay well there isn't a booking with a payment option anymore on your dev site
All 4 are "booked" or "requested"
one second
Hello. I've added a new booking and please test it.
Thanks
๐
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 ?
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?
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?
No setting.
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.
thank you.
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
let me see
do you mean this meta tag?
<meta
name="viewport"
content="width=device-width, initial-scale=1, minimal-ui"
/>
Yep
removed it and tested but is the same on Safari and Chorme.
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
ok.
Can you see if adding a forward slash to the end of your fetch URL makes any difference?
Sure but this is something much earlier in your flow
so do you think we should add slash to all api endpoints?
Ok. thank you.
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
wow. so what should i do?
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> )}
ok
Let's also remove the maxColumns and maxRows and let it just handle via auto right now
Kk can you remove the class settings from the outer div?
thank you.
Hello. I've just move Express checkout form from modal to main page.
it works now.
Yeah that doesn't surprise me
so I think it is modal issue.
Right it is something with the sizing or scroll of the modal I think