#brambilla
1 messages · Page 1 of 1 (latest)
Hello! That's interesting. Do you have a link to the page where that's happening so I can take a look?
Not yet, but I have the code in git
Are you using the appearance API?
Yes
If so does not using it fix the issue?
👋 Taking over this thread, catching up now
src\pages\order\index.jsx
Where the payment element is being used
And for some reason is just in the mobile view
And if you toggle the theme in the side menu the payment element loads correctly then, not squished
I also have this log here on the browser that I didn't understood; Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.
Where did you use appearance API? I can't find the usage in the code
What do you mean mobile view? Do you mean the issue only occurs on mobile browser or mobile view in desktop browser?
Does it happen if you open it directly on mobile browser?
Yeah, but I think is the browser cause I opened in chrome now and it's working
The way it opens
The way it should open
(I change the theme so it reloaded the element)
I'm confused. When I asked if the issue happens on the mobile browser, the reply was yes, but you also said it's working at the same time. Let's step back a bit. Can you explain whether following environment has this issue?
- Mobile view in opera
- Mobile view in chrome
- Mobile browser directly on chrome
So 2 and 3 work fine?
Yes
What is the use case that you will use mobile view in Opera to accept payment?
These are the browsers that Stripe supports: https://stripe.com/docs/js/appendix/supported_browsers
Only Opera with version 25+ in normal desktop browser is supported
Sure!
Got it. I've made a useEffect to reload, the options when the component is displayed in the mobile view, that solves the problem. But what was actually happening was that my browser is not supported, I said opera but what I'm using is opera GX, probably there is a difference in how they run, sorry for the bothering, but thanks I solved the problem thanks to u
The user has to confirm his items before going to the payment form so I added a useEffect to listen for when the form is displayed
It's already late night here, thanks for everything, good work