Plugin Support
Missy a11n
(@m155y5)
Automattic Happiness Engineer
Hi @alexisfontana –
Just to be clear, when you set up Apple Pay in Stripe, you did not download the verification file, correct? That file is produced by the plugin, so you won’t need to upload that to your site.
Next, make sure that you add the domain of your site exactly as it loads, include the www, or leave it out depending on how your site loads, but you must be sure to remove the https://
.
Hello,
I did a test once without downloading the verification file (leaving the one generated automatically by the extension) which did not work and a second test by downloading the verification file, which also did not work.
I added the domain of the site as it loads and I deleted the https://.
Other avenues to study? Resolving my problem is urgent because I would like to add Apple Pay quickly so that my customers can pay.
Thank you in advance.
Regards,
Plugin Support
Missy a11n
(@m155y5)
Automattic Happiness Engineer
Okay, so the next thing I would suggest is that you confirm that this file exists on your server:
https://eleganthome-deco.com/.well-known/apple-developer-merchantid-domain-association
It sounds like that file is either missing or has a file or folder permissions setting that is preventing Stripe from reading it.
Hello @m155y5,
The file is present, I just checked again via FTP.
Writing to files is allowed.
Why is error 404 displayed?
Looking forward to your return.
Regards,
I’m certainly no expert but the only thing I can think of (if you’re sure the file is there and there are no typos) is permissions. What are the owner/group permissions on both the .well-known directory and the Apple developer file? If you connect via FTP you should see the permissions somewhere against the directory and the file, usually expressed as two 3-digit numbers (eg “685 665”)
@itsviney
755 on .well-known directory
644 on the apple developer file
Plugin Support
Missy a11n
(@m155y5)
Automattic Happiness Engineer
@alexisfontana – In your Stripe Dashboard, if you go to this page, what do you see under the Web Domains listed there?
@m155y5, I don’t see anything because I have this following message when I want to add the domain:
We attempted to retrieve the file from https://eleganthome-deco.com/.well-known/apple-developer-merchantid-domain-association, but received a 404 status code from your server. Check that the file is hosted correctly. Note that our servers probably send HTTP headers different from those of your browser. You should examine your logs to find out the reason for the request failure. For more information, see https://stripe.com/docs/stripe-js/elements/payment-request-button#verifying-your-domain-with-apple-pay.
The file permissions look correct. Try putting another file (eg. a text file) in the .well-known directory and see if you can access that through a web browser. It seems like your webserver might be preventing access to the directory.
Ok, next try removing the .txt file extension and see how it handles it then. I’m wondering if your server is handling requests for certain file types differently to others.
Again, just want to say I’m no expert in this area at all – I’m just saying what I would be trying if I was in your scenario. 🙂
@itsviney, i delete test.txt and is the same result.
I meant just remove the “.txt” part so you have a file that’s just called “test”. Also make sure it isn’t completely empty. Write “bonjour” in it or something. 🙂