#ohadbenita-ApplePay
1 messages · Page 1 of 1 (latest)
Yes
In order to register your domain with Apple, you will need to first verify your ownership of the domain.
Did you download this domain association file and host it at /.well-known/apple-developer-merchantid-domain-association on your site? https://stripe.com/docs/stripe-js/elements/payment-request-button#verifying-your-domain-with-apple-pay
OK, so it works fine in your local setup, but it doesn't work in prod?
So did you host the file in your locally and serve via HTTPS?
Locally
OK, so does your local server host the file? and did you access the local server via HTTPS?
Yes, the local server hosts this file
OK, so let me rephrase your problem
- you are getting the domain verification error in local server
- you have no problem in prod?
is it the correct understanding?
We haven't reached the point of production readiness
We want to be able to verify the domain with sandbox using localhost
Is it a possibility for Stripe with Apple Pay ?
I see, you are testing in localhost.
I'm afraid that you can't test ApplePay in localhost as Apple Pay requires the page to be served via HTTPS
You can use https://ngrok.com/ to get a public HTTPS for your local test server
ngrok secure introspectable tunnels to localhost webhook development tool and debugging tool