#daniyal_11692

1 messages · Page 1 of 1 (latest)

dusky palmBOT
#

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.

hexed moat
#

hi there!

#

do you have a link to reproduce the issue?

dusky palmBOT
rustic thistle
#

Hey! Taking over for my colleague. Let me catch up.

#

Iin order to use Apple pay you need to register your domain first

subtle forum
#

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.

rustic thistle
#

apple pay appears
No I'm not seeing it in video

#

Are you using Connect ?

subtle forum
#

Yes

rustic thistle
#

What is the Connect Account Id ?

subtle forum
#

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

rustic thistle
#

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 ?

subtle forum
#

pls change you location to neworleans

#

yes, it is blocking me from proceeding

#

whereas google pay is working fine

rustic thistle
subtle forum
#

?

rustic thistle
#

And what happens when you click on Place order ?

#

I don't think those errors are blocking...

dusky palmBOT
subtle forum
#

it throws an error

green gale
#

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?

subtle forum
#

yes correct

green gale
#

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?

subtle forum
#

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

green gale
subtle forum
#

different domains but i'm on safari 17

#

i've also added allow=payment attribute

green gale
#

Can you share the URL of the site where you're having problems?

subtle forum
#

screemcast for reproducing

green gale
#

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.

subtle forum
#

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

green gale
#

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?

subtle forum
#

when you click on continue on payment then the payment element appears

#

so no issue of payment going through

green gale
#

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.

subtle forum
#

i only have live example link to share.

green gale
#

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.

subtle forum
#

both domains are verified.

#

i confirmed

green gale
#

That doesn't align with what I'm seeing. Can you share your Stripe account ID?

subtle forum
#

from where can i see this?

green gale
#

whoops, wrong link, one sec there we go

dusky palmBOT
subtle forum
#

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

floral terrace
#

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)