Adding the Apple Pay button breaks my site's style on Non-Safari / iOS devices.
Is there a way to detect if the user's device has apple pay so I can change the site structure to accommodate the pay button?
I was thinking something like this but it would be difficult to test. I'm wondering if there is a different variable?
Is there a way to detect if the user's device has apple pay so I can change the site structure to accommodate the pay button?
I was thinking something like this but it would be difficult to test. I'm wondering if there is a different variable?
Code:
<mvt:assign name="g.HTTP_USER_AGENT" value="s.HTTP_USER_AGENT" /> <mvt:if expr="('AppleWebKit' CIN g.HTTP_USER_AGENT ) AND ('Safari' CIN g.HTTP_USER_AGENT) AND NOT('Chrom' CIN g.HTTP_USER_AGENT)"> <mvt:assign name="g.has_apple_pay" value="1" /> </mvt:if>
Comment