Title: Problem with adding Apple Pay
Last modified: January 30, 2020

---

# Problem with adding Apple Pay

 *  Resolved [alexisfontana](https://wordpress.org/support/users/alexisfontana/)
 * (@alexisfontana)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/problem-with-adding-apple-pay/)
 * Hello,
 * I wanted to add Apple Pay via WooCommerce Stripe Gateway, after configuring from
   my WordPress administration, I have this error message: The verification of the
   Apple Pay domain failed. Check the log to see the problem. (Logging must be enabled
   to view the logged logs)
 * I went to my Stripe dashboard to add the domain by following this tutorial: [https://docs.woocommerce.com/document/stripe/#section-4](https://docs.woocommerce.com/document/stripe/#section-4).
 * But when I add a new domain, I get this error message: We tried to recover the
   file at [https://eleganthome-deco.com/.well-known/apple-developer-merchantid-domain-association](https://eleganthome-deco.com/.well-known/apple-developer-merchantid-domain-association),
   but we have 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](https://stripe.com/docs/stripe-js/elements/payment-request-button#verifying-your-domain-with-apple-pay).
 * Can you help me solve this problem?
 * Thanks in advance.
 * Regards,

Viewing 15 replies - 1 through 15 (of 24 total)

1 [2](https://wordpress.org/support/topic/problem-with-adding-apple-pay/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/problem-with-adding-apple-pay/page/2/?output_format=md)

 *  [Missy a11n](https://wordpress.org/support/users/m155y5/)
 * (@m155y5)
 * Automattic Happiness Engineer
 * [6 years, 4 months ago](https://wordpress.org/support/topic/problem-with-adding-apple-pay/#post-12403814)
 * Hi [@alexisfontana](https://wordpress.org/support/users/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://`.
 *  Thread Starter [alexisfontana](https://wordpress.org/support/users/alexisfontana/)
 * (@alexisfontana)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/problem-with-adding-apple-pay/#post-12404716)
 * 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://](https://wordpress.org/support/topic/problem-with-adding-apple-pay/?output_format=md).
 * 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,
 *  [Missy a11n](https://wordpress.org/support/users/m155y5/)
 * (@m155y5)
 * Automattic Happiness Engineer
 * [6 years, 4 months ago](https://wordpress.org/support/topic/problem-with-adding-apple-pay/#post-12423966)
 * 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.
 *  Thread Starter [alexisfontana](https://wordpress.org/support/users/alexisfontana/)
 * (@alexisfontana)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/problem-with-adding-apple-pay/#post-12424712)
 * Hello [@m155y5](https://wordpress.org/support/users/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,
    -  This reply was modified 6 years, 4 months ago by [alexisfontana](https://wordpress.org/support/users/alexisfontana/).
 *  Thread Starter [alexisfontana](https://wordpress.org/support/users/alexisfontana/)
 * (@alexisfontana)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/problem-with-adding-apple-pay/#post-12463883)
 * Hi,
 * You can help me please ?
 * [@m155y5](https://wordpress.org/support/users/m155y5/) ?
 * Thanks in advance !
 *  [itsViney](https://wordpress.org/support/users/itsviney/)
 * (@itsviney)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/problem-with-adding-apple-pay/#post-12463987)
 * 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”)
 *  Thread Starter [alexisfontana](https://wordpress.org/support/users/alexisfontana/)
 * (@alexisfontana)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/problem-with-adding-apple-pay/#post-12464057)
 * [@itsviney](https://wordpress.org/support/users/itsviney/)
 * 755 on .well-known directory
    644 on the apple developer file
 *  [Missy a11n](https://wordpress.org/support/users/m155y5/)
 * (@m155y5)
 * Automattic Happiness Engineer
 * [6 years, 3 months ago](https://wordpress.org/support/topic/problem-with-adding-apple-pay/#post-12465105)
 * [@alexisfontana](https://wordpress.org/support/users/alexisfontana/) – In your
   Stripe Dashboard, if you [go to this page](https://dashboard.stripe.com/settings/payments/apple_pay),
   what do you see under the Web Domains listed there?
 *  Thread Starter [alexisfontana](https://wordpress.org/support/users/alexisfontana/)
 * (@alexisfontana)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/problem-with-adding-apple-pay/#post-12465271)
 * [@m155y5](https://wordpress.org/support/users/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](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](https://stripe.com/docs/stripe-js/elements/payment-request-button#verifying-your-domain-with-apple-pay).
 *  [itsViney](https://wordpress.org/support/users/itsviney/)
 * (@itsviney)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/problem-with-adding-apple-pay/#post-12465380)
 * 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.
 *  Thread Starter [alexisfontana](https://wordpress.org/support/users/alexisfontana/)
 * (@alexisfontana)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/problem-with-adding-apple-pay/#post-12465405)
 * See it, the results is not the same when you open the 2 links :
    [https://eleganthome-deco.com/.well-known/apple-developer-merchantid-domain-association](https://eleganthome-deco.com/.well-known/apple-developer-merchantid-domain-association):
   servor error [https://eleganthome-deco.com/.well-known/test.txt](https://eleganthome-deco.com/.well-known/test.txt)
 * Why [@itsviney](https://wordpress.org/support/users/itsviney/) ?
 * Thanks in advance !
 *  [itsViney](https://wordpress.org/support/users/itsviney/)
 * (@itsviney)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/problem-with-adding-apple-pay/#post-12465461)
 * 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. 🙂
 *  Thread Starter [alexisfontana](https://wordpress.org/support/users/alexisfontana/)
 * (@alexisfontana)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/problem-with-adding-apple-pay/#post-12465630)
 * [@itsviney](https://wordpress.org/support/users/itsviney/), i delete test.txt
   and is the same result.
 *  [itsViney](https://wordpress.org/support/users/itsviney/)
 * (@itsviney)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/problem-with-adding-apple-pay/#post-12465939)
 * 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.
   🙂
 *  Thread Starter [alexisfontana](https://wordpress.org/support/users/alexisfontana/)
 * (@alexisfontana)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/problem-with-adding-apple-pay/#post-12466625)
 * [@itsviney](https://wordpress.org/support/users/itsviney/), i create a file called
   test with bonjour text : [https://eleganthome-deco.com/.well-known/test](https://eleganthome-deco.com/.well-known/test)

Viewing 15 replies - 1 through 15 (of 24 total)

1 [2](https://wordpress.org/support/topic/problem-with-adding-apple-pay/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/problem-with-adding-apple-pay/page/2/?output_format=md)

The topic ‘Problem with adding Apple Pay’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-gateway-stripe/assets/icon-256x256.png?rev=3177277)
 * [WooCommerce Stripe Payment Gateway](https://wordpress.org/plugins/woocommerce-gateway-stripe/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-gateway-stripe/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/reviews/)

 * 24 replies
 * 4 participants
 * Last reply from: [Kel C. a11n](https://wordpress.org/support/users/kellymetal/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/problem-with-adding-apple-pay/page/2/#post-12580793)
 * Status: resolved