How to setup Apple Pay on WooCommerce (In Record Time)

Featured, WooCommerce
How to setup Apple Pay on WooCommerce (In Record Time)

This guide will help you add Apple Pay to your WooCommerce store in record time.

The best part?

Everything here applies to 2021.

(In other words: you don’t need to worry about reading out of date stuff.)

A few things first…for users to use Apple Pay on your WooCommerce store they need to:

✅ Use the Safari browser
✅ Use an Apple product (i.e. iPhone, iPad, MacBook)
✅ Have Apple Pay enabled on their device

If you are more of a visual learner, follow along to my video (over 15,000 views!).

Let’s get started!

1. Installation

We will be using the WooCommerce Stripe plugin to setup Apple Pay.

Download the plugin and make sure it is installed and activated on your WooCommerce store!

If you have never setup Stripe on your WooCommerce store, see my tutorial on how to setup Stripe.

2. Enable payment request buttons

First, login to your WordPress dashboard.

Next, go to your WooCommerce > Settings > Payments.

Then, click Manage on Stripe.

Finally, click the checkbox to enable Enable Payment Request Buttons.

Click Save.

WooCommerce Apple Pay

WooCommerce Apple Pay

Setup Apple Pay on your WooCommerce store.

Get the plugin

3. Add your domain to Apple Pay in Stripe

Next, login to your Stripe dashboard.

Then, click Settings > Payment Methods > Apple Pay.

Next, click “add domain” and enter your domain.

Finally, download the verification file to your computer.

4. Upload verification file to document root

Next, connect to your server via SFTP or SSH using a tool such as FileZilla.

Then, upload the apple-developer-merchantid-domain-association file to the .well-known folder in your document root.

Pro Tip: you may have to create the “.well-known” folder on your server by creating a new directory.

To make sure you followed this step correctly, navigate to https://yourdomain.com/.well-known/apple-developer-merchantid-domain-association.

You should see a string of many randomly generated numbers.

WooCommerce Apple Pay

WooCommerce Apple Pay

Setup Apple Pay on your WooCommerce store.

Get the plugin

5. Test that Apple Pay is working

Open up a Safari browser on your phone or computer.

Go to your website and add one of your products to Cart.

You should see the option to pay with Apple Pay. Is Apple Pay not showing up?

Go through the Checkout process.

Pro tip: Update 1 product in your store to be $1. Then do a real transaction using Apple Pay to make sure everything is working!

Help! Apple Pay is not showing up

Follow the checklist below to make sure:

✅ Are you using an Apple product (i.e. iPhone, iPad, MacBook, etc.)?
✅ Are you using the the Safari browser?
✅ Have you cleared your cache?
✅ Do you have a SSL certificate installed?
✅ Do you have Apple Pay setup on your Apple device?

How to quickly check if I have Apple Pay enabled on my device?

On your iPhone > go to Settings > click Wallet > scroll down to bottom of page and enable “Allow payments on Mac”.

Code Customizations

How to hide Apple Pay on your Product page?

// Hide Apple Pay on Product page
add_filter('wc_stripe_hide_payment_request_on_product_page', '__return_true');

How to add Apple Pay on your Checkout page?

// Adds Payment Request button (Apple Pay) on the Checkout page
add_filter('wc_stripe_show_payment_request_on_checkout', '__return_true');
About the Author

About the Author

Simon founded SG Web Partners in 2015. Simon has 7 years of Development experience working on WordPress sites.

Subscribe

Comments

  1. Anjali April 21, 2020 | 11:42 pm

    Hello I have clear cache of safari browser still apply pay is not showing please help

  2. Julia August 24, 2020 | 8:45 am

    Hey! I can’t get the Apple Pay button to show up on the checkout. I already cleaned caches after adding the button, tried on different iOS devices… What gives?

    • Simon Gondeck August 24, 2020 | 11:43 am

      Hey Julia, are you able to see the Apple Pay button on the Cart page? Is the Checkout page the only place you cannot see the Apple Pay button or are you not seeing this anywhere on your site? Please provide a url or else I cannot see 🙂

  3. Eiroll August 24, 2020 | 10:48 pm
    // Adds Payment Request button (Apple Pay) on the Checkout page
    add_filter('wc_stripe_show_payment_request_on_checkout', '__return_true');

    Hello sir, where i can insert this snippet code?
    I am using woocommerce wordpress. Thanks Mate!

    • Simon Gondeck August 25, 2020 | 5:22 pm

      Hey Eiroll, you have to add this to you theme’s functions.php file. What hosting are you currently using? They should provide instructions on how to connect to your site via SFTP. Then after connecting to your site via SFTP or SSH, go to /wp-content/themes/your-theme-name/. Next, edit the functions.php file and add this to the bottom of the file and save.

  4. umer shahzad September 17, 2020 | 7:06 am

    hello sir apple pay button is not showing ,i have taken all steps ….using same stripe gateway…credit and debit card works fine…but the issue is only that apple pay not showing on anywhere on site!
    kindly guide me about this…i have followed your documentation completely

    • Simon Gondeck September 17, 2020 | 1:30 pm

      I cannot try to help if you do not provide a link to your site. Overall, if Apple Pay is not showing up on your Cart or Checkout page, make sure you are using an Apple product (i.e. iPhone, iPad, MacBook, etc.) and Safari browser. If you are still having issues clear your cache and try on both your 🖥 desktop and 📱mobile phone. Also make sure you have a SSL certificate on your site and HTTPS is used instead of HTTP. Another issue I see is that users do not have Apple Pay setup on their phone. Double check this by enabling “Allow payments on Mac” in your iPhone settings. On your iPhone > go to Settings > click Wallet > scroll down to bottom to enable.

      • umer shahzad September 17, 2020 | 11:50 pm

        oh! thank you for your guiding…i have applied all methods but issuue has remain…here is my website url : https://kasabeeston.com/ …one thing is that i am not using live stripe api client secret and client id…i have generated test api on stripe account to check…stripe credit/debit card payment methods works fine …but the only issue is that not showing apple pay button .

        • Simon Gondeck September 17, 2020 | 11:58 pm

          Hey Umer, it looks like you do not have Apple Pay enabled in Safari if using desktop or your iPhone if using mobile. Are you using an Apple product? Are you also using the Safari browser? When I go to your site the Apple Pay button shows up for me. For reference, see the screenshot below:

          Apple Pay on Safari browser

          • umer shahzad September 18, 2020 | 12:51 am

            oh thank you very much dear ! actually i am using apple pay payment method for first time…so i have some questions…is it only show on iphone devices like mac or phone or it can show on any device and anybrowser ? second thing is ince we need to enablle apple pay on safari manually by customer then it will display?

          • Simon Gondeck September 21, 2020 | 2:04 pm

            Apple Pay can only show if using a Apple device and also using the Safari browser. The user also needs to enable Apple Pay on their iPhone or their MacBook as well.

  5. Dergido Alen September 29, 2020 | 11:37 am

    Hi Simon,

    Although I tried everything, I could not. Your help will be very valuable to me. Do you have any different suggestions? site address: melissalinen.com

    • Simon Gondeck September 29, 2020 | 7:04 pm

      Hey Dergido, can you confirm that you have Apple Pay setup on your Mac or iPhone? Are you also using the Safari browser? I would test this on your phone that Apple Pay is setup. Double check this by enabling “Allow payments on Mac” in your iPhone settings. On your iPhone > go to Settings > click Wallet > scroll down to bottom to enable. Then visit your site’s url in the Safari browser on your phone. I was able to see Apple Pay show up (see screenshot below):

      Apple Pay iPhone - Safari browser

      • Dergido Alen October 4, 2020 | 8:41 am

        Hi Simon,

        After I wrote to you, I deleted and reinstalled my woocommerce theme. However, after doing that, Apple Pay was visible. Thanks for your help.

  6. Dergido Alen October 4, 2020 | 1:44 pm

    Hi Simon,
    How can i move Apple Pay button to after the customer details in checkout page? or below other payment methods?

  7. Mike November 13, 2020 | 1:56 pm

    Hello, Simon

    Do I need to register my domain with a stripe and put the apple verification file on the server?
    Customers can’t see the Apple Pay button if the hosting service doesn’t register their domain with Apple?

    • Simon Gondeck November 13, 2020 | 9:04 pm

      That is what I would recommend. What is your product page url? Do you have Apple Pay enabled on your mobile phone? Are you using the Safari browser?

  8. Leon December 3, 2020 | 8:41 am

    Thanks for the guide. Do you need to setup a developer account with Apple first, and the follow this tutorial? Or anyone with a Stripe account + Woocommerce can do it (without Apple Dev account)?

    • Simon Gondeck December 3, 2020 | 2:47 pm

      Hey Leon! Yes that is correct. Anyone using WooCommerce with a Stripe account can enable Apple Pay.

  9. Carlos December 20, 2020 | 1:55 am

    Hello ! I’ve done all the steps and the Apple Pay button works ok. The problem is that many times, when a customer makes an order and tries to pay with Apple Pay using the mobile, the order is creacted with 0 items and $0.00, despite there was a an item in the chart.

    Any suggestion? My site is https://photo-to-text.com/

    Thank you!

    • Simon Gondeck December 22, 2020 | 4:08 am

      Hey Carlos! In your situation it is asking for the product to be added to the Cart before Apple Pay can work. Did you do any customizations? Apple Pay requests have to be loaded as the page is loaded. If enabled on single product pages, the Apple Pay button will be available above the “add to cart” button.

      You could also hide the Apple Pay button on the Product page by using this snippet:

      add_filter( 'wc_stripe_hide_payment_request_on_product_page', '__return_true' );
  10. Anjali m January 18, 2021 | 11:37 pm

    I cant see applepay in my website(afrofreelancer.com) I followed full tutorial

  11. Damian January 19, 2021 | 10:20 am

    Hi Simon. Thanks for Your Step By Step tutorial however apple pay button is not showing , I have taken all steps ….credit and debit card works fine… im using trust payments and stripe for payment methods but the issue is only that apple pay not showing on anywhere on site!

    https://www.lifechangingcompetition.co.uk

    • Simon G January 19, 2021 | 10:50 am

      Hey Damian, did you look at this checklist and make sure you are using the Safari browser, have Apple Pay enable on your site, etc.? https://sgwebpartners.com/setup-apple-pay-on-woocommerce/#checklist

      • Damian January 19, 2021 | 11:20 am

        Thank You for quick reply. Yes, I did go through the check list a few times, I’m using only Apple products right now, iPhone ,iMac , iPad I’ve cleared cache on all of them and non of them showing apple pay button, i don’t have any issues with paying for goods on other websites using apple pay apart on my one 🙂 it’s my 3rd day already trying to solve the issue.

        • Simon G January 21, 2021 | 9:00 pm

          Hey Damian, if I go to your site > add a product to Cart > go to Checkout > I am able to see Apple Pay. Did you recently resolve this issue?

  12. Langa January 26, 2021 | 7:00 am

    Greetings Simon. Thanks for your informative tutorial however, Apple Pay button is not showing. I have followed all your steps, credit and debit card payment method works fine and I have been using it for about a month, I only added Apple Pay yesterday. I also went through your checklist https://sgwebpartners.com/setup-apple-pay-on-woocommerce/#checklist I’ve tried on both my mac and ios devices and Apple Pay is still not showing on my website https://jelele.com Are you by any chance able to see Apple Pay option on my website? Thanks in advance.

    • Simon G January 26, 2021 | 1:34 pm

      Hey Langa, I did not see when I checked in my Safari browser. I would switch to the Twenty Twenty One or Storefront default theme to rule out a theme conflict? Does Apple Pay still not show up? Try disabling plugins 1 by 1 to rule out a plugin conflict.

      • Langa January 27, 2021 | 4:16 am

        Thanks Simon, I switched to Stripe for Woocommerce which is your recommended plugin. Works like a charm! Great job buddy, cheers

        • Simon G January 27, 2021 | 6:29 am

          awesome great to hear Langa!

Leave a reply for Carlos

Comment policy: We love comments and appreciate the time that readers spend to share ideas and give feedback. However, all comments are manually moderated and those deemed to be spam or solely promotional will be deleted. Your email address will not be published. Required fields are marked*

FAQ

Why is WooCommerce Apple Pay not showing up on my WooCommerce site?

If Apple Pay is not showing up on your Cart or Checkout page, make sure you are using an Apple product (i.e. iPhone, iPad, MacBook, etc.) and Safari browser. If you are still having issues clear your cache and try on both your 🖥 desktop and 📱mobile phone.

Also make sure you have SSL certificate on your site and HTTPS is used instead of HTTP.

Another issue I see is that users do not have Apple Pay setup on their phone. Double check this by enabling “Allow payments on Mac” in your iPhone settings. On your iPhone > go to Settings > click Wallet > scroll down to bottom to enable.

How to hide Apple Pay on your WooCommerce product page?

// Hide Apple Pay on Product page
add_filter('wc_stripe_hide_payment_request_on_product_page', '__return_true');

How to add Apple Pay on WooCommerce checkout page?

// Adds Payment Request button (Apple Pay) on the Checkout page
add_filter('wc_stripe_show_payment_request_on_checkout', '__return_true');