#daniyal_11692
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- daniyal_11692, 23 hours ago, 22 messages
- daniyal_11692, 1 day ago, 13 messages
- daniyal_11692, 2 days ago, 9 messages
Hey! Taking over for my colleague. Let me catch up.
Iin order to use Apple pay you need to register your domain first
its registered
apple pay appears but it's howing errors in the console., Blocked a frame with origin "" from accessing a frame with origin "https://frontend2.locally.com/". Protocols, domains, and ports must match.
Yes
What is the Connect Account Id ?
apple pay is enabled. let me sum up the issue
is you see the screencast and open this link. you can reproduce this issue
apple pay will be shown if you open this in safari . i was using chrome when i made this screencast
I'm getting this when I try to reproduce
Did you try to proceed, is the error in your console blocking you from doing the payment ?
pls change you location to neworleans
yes, it is blocking me from proceeding
whereas google pay is working fine
Can you record a video for Apple Pay with devtool opened
And what happens when you click on Place order ?
I don't think those errors are blocking...
Hi there 👋 jumping in as my teammate needed to step away. Please bear with me while I catch up on the discussion here.
Alright, making sure I'm grasping correctly, you have a site that is trying to offer Apple Pay, but it's doing so by including another site as an iframe?
yes correct
There is a known limitation enforced by Apple, that if you're using a version of Safari before 17, Apple Pay can only be used in an iframe if the iframe's domain and the page's top level domain matched exactly.
Are your domains the same for the iframe and top level?
i've confirmed apple pay does not even appear in safar version less than 17
no diff domains. app is being served from diff domain and iframe from siff
If you're using different domains, and are not on Safari 17, it is expected for Apple Pay to not work correctly. That is a limitation imposed by Apple.
https://stripe.com/docs/stripe-js/elements/payment-request-button?client=html#safari
Can you share the URL of the site where you're having problems?
here's the lin: https://www.brooksrunning.com/en_us/adrenaline-gts-22-mens-supportive-road-running-shoe/110366.html
screemcast for reproducing
Do you have instructions that you can provide to see the behavior? I tried to follow your recording but am seeing slightly different buttons and am not sure what you clicked on.
1.click shop locally 2. change your location lonaconing, maryland, 3.scroll down and select potomac: river running - leesburg 4. click Buy now 5. click proceed to checlout 6. click continue to payment
I can't step all the way through that, because it looks like you're using your live mode publishable key there and I'm not comfortable risking a payment going through. Do you have a site that is using your testmode keys where you're trying to debug this before taking it live?
when you click on continue on payment then the payment element appears
so no issue of payment going through
The Payment Element is being rendered using your livemode key, there is a risk of payments going through. You should be using testmode keys until you're ready to take your code live.
i only have live example link to share.
Gotcha, in the future I would recommend using a test site, that leverages your test keys, for testing/debugging. But I think I see what the concern is, it looks like the top level domain that you're using hasn't been registered to your account and verified with Apple.
When using an iframe both domains need to be registered to your account and verified.
That doesn't align with what I'm seeing. Can you share your Stripe account ID?
from where can i see this?
The top right of this page in the dashboard is the easiest place that I'm aware of to find it:
https://dashboard.stripe.com/settings/account
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
whoops, wrong link, one sec there we go
Error] IntegrationError: The code that shows the Apple Pay payment sheet must be invoked directly by a user activation event, like a click or a touch gesture. To prevent this error make sure the code that shows the payment sheet is at or near the top of your user gesture event handler, before any async or long-running code.
this is the error now being shown
That error comes from Apple, as it notes you need to show the payment sheet quickly after the user taps the button (usually within one second I think)