#aezy-Apple-Pay

1 messages · Page 1 of 1 (latest)

golden brook
#

Hi there, you need to upload the apple-merchant-domain-association file to your prod server before registering the domain

vast plover
#

but documentation says it can be used in test environment as well

#

according to documentation
You need to do this for domains you use in both production and testing. When testing locally, use a tool like ngrok to get an HTTPS domain.

golden brook
#

Yup, but you still need to upload the file to your server first, regardless the environment

vast plover
#

i have uploaded the file but still the error shoes up.

#

as i mentioned i have the file in public/.well-known folder

golden brook
#

can I have your public URL?

vast plover
golden brook
#

The page is not loading

vast plover
#

i am using ngrok which tunnels the local url to a public url

golden brook
#

yup, but the page is not loading for me

vast plover
#

let me check it again

#

you need to click on. visit with unsafe

#

then it will open the page

frosty steppe
#

can you explain me again what you told me

#

sorry...

vast plover
#

well. i am currently working on a website. The website is in nextjs. The apple-merchantid-domain association file is uploaded in public/.well-known folder and when i try to register the domain. it says...
We had trouble registering your domain. Please ensure you are following the steps as seen here: https://stripe.com/docs/stripe-js/elements/payment-request-button#verifying-your-domain-with-apple-pay. If this keeps happening, contact us at https://support.stripe.com/contact.

Collect payment and address information from customers who use Apple Pay, Google Pay, and browser-saved cards with Payment Request APIs such as Microsoft Pay on Edge.

#

??

#

i am able to see the file when access the folder on the website

#

but stripe apple pay is still saying.
we had trouble registrering your domain

#

does this file have any expiry?

shell cave
#

Hi! Can you share the public URL that ends with /.well-known/apple-developer-merchantid-domain-association?

vast plover
#

ok sure

#

you have to go with unsafe mode as it is served with ngrok

shell cave
#

That looks correct to me. What's exactly the error you see when you try to add that domain? Can you share a screenshot?

vast plover
shell cave
#

Can you remove the https:// from your URL in the input? So only add af48-203-175-72-146.ngrok.io

vast plover
#

ok

#

lol. it was a really dumb mistake. thanks alot.
P.S. still laughing at myself XD