Title: Apple Pay payment method issue
Last modified: November 30, 2020

---

# Apple Pay payment method issue

 *  Resolved [dl292](https://wordpress.org/support/users/dl292/)
 * (@dl292)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/apple-pay-payment-method-issue/)
 * Hi,
 * I have Stripe working, added the live api details etc… and its accepting live
   payments.
 * However, when I enable Apple Pay, on the checkout page I get “IntegrationError:
   Please call Stripe() with your publishable key. You used an empty string.”
 * Ive registered the domain and followed the instructions etc…
 * Looking at the checkout code I can see:
 *     ```
       <script>
       var wc_stripe_applepay_cart_params = {"gateway_id":"stripe_applepay","api_key":"","saved_method_selector":"[name=\"stripe_applepay_saved_method_key\"]","token_selector":"[name=\"stripe_applepay_token_key\"]","messages":{"terms":"Please read and accept the terms and conditions to proceed with your order.","required_field":"Please fill out all required fields.","invalid_amount":"Please update you product quantity before using Apple Pay.","choose_product":"Please select a product option before updating quantity."},"routes":{"setup_intent":"\/shop\/?wc-ajax=wc_stripe_frontend_request&path=\/wc-stripe\/v1\/setup-intent","sync_intent":"\/shop\/?wc-ajax=wc_stripe_frontend_request&path=\/wc-stripe\/v1\/sync-payment-intent","add_to_cart":"\/shop\/?wc-ajax=wc_stripe_frontend_request&path=\/wc-stripe\/v1\/cart\/add-to-cart","cart_calculation":"\/shop\/?wc-ajax=wc_stripe_frontend_request&path=\/wc-stripe\/v1\/cart\/cart-calculation","shipping_method":"\/shop\/?wc-ajax=wc_stripe_frontend_request&path=\/wc-stripe\/v1\/cart\/shipping-method","shipping_address":"\/shop\/?wc-ajax=wc_stripe_frontend_request&path=\/wc-stripe\/v1\/cart\/shipping-address","checkout":"\/shop\/?wc-ajax=wc_stripe_frontend_request&path=\/wc-stripe\/v1\/checkout","checkout_payment":"\/shop\/?wc-ajax=wc_stripe_frontend_request&path=\/wc-stripe\/v1\/checkout\/payment"},"rest_nonce":"3a38d4d0f0","banner_enabled":"","currency":"GBP","total_label":"Total","country_code":"GB","user_id":"1","button":"<button class=\"apple-pay-button apple-pay-button-black\" style=\"-apple-pay-button-type:plain\"><\/button>"};
       </script>
       ```
   
 * So that shows the api key as being empty? (Hence the error messsage).
 * Why wold this be? Everything (as far as Im aware) is setup correctly.
 * Thanks

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Support [Stuart Duff – a11n](https://wordpress.org/support/users/stuartduff/)
 * (@stuartduff)
 * Automattic Happiness Engineer
 * [5 years, 8 months ago](https://wordpress.org/support/topic/apple-pay-payment-method-issue/#post-13741297)
 * Hi [@dl292](https://wordpress.org/support/users/dl292/),
 * To display payment request buttons like ApplePay and GooglePay on the WooCommerce
   checkout page you would add this code filter below to your site.
 * [https://docs.woocommerce.com/document/stripe/#section-30](https://docs.woocommerce.com/document/stripe/#section-30)
 * Testing this code filter on my install the buttons were visible on the checkout
   page of my WooCommerce installation.
 *  Thread Starter [dl292](https://wordpress.org/support/users/dl292/)
 * (@dl292)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/apple-pay-payment-method-issue/#post-13741327)
 * Thanks [@stuartduff](https://wordpress.org/support/users/stuartduff/) . But adding
   that filter wont solve the error Im getting. Or will it? 🙂
 *  Plugin Support [Stuart Duff – a11n](https://wordpress.org/support/users/stuartduff/)
 * (@stuartduff)
 * Automattic Happiness Engineer
 * [5 years, 8 months ago](https://wordpress.org/support/topic/apple-pay-payment-method-issue/#post-13741360)
 * Hey [@dl292](https://wordpress.org/support/users/dl292/),
 * By default, the payment request buttons like ApplePay and GooglePay will only
   display in Single Product pages of WooCommerce.
 * When using the [WooCommerce Stripe Payment Gateway](https://wordpress.org/plugins/woocommerce-gateway-stripe/)
   plugin that particular code filter is the only way to display an ApplePay button
   on the WooCommerce checkout page.
 *  Thread Starter [dl292](https://wordpress.org/support/users/dl292/)
 * (@dl292)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/apple-pay-payment-method-issue/#post-13741467)
 * Ive added
 * `add_filter( 'wc_stripe_show_payment_request_on_checkout', '__return_true' );`
 * To my functions.php file and Ive enabled Apply Pay in my Stripe settings and 
   Im getting the error “IntegrationError: Please call Stripe() with your publishable
   key. You used an empty string.”
 * If I disable Apply Pay I dont get that error.
 *  Plugin Support [Stuart Duff – a11n](https://wordpress.org/support/users/stuartduff/)
 * (@stuartduff)
 * Automattic Happiness Engineer
 * [5 years, 8 months ago](https://wordpress.org/support/topic/apple-pay-payment-method-issue/#post-13746062)
 * Hey [@dl292](https://wordpress.org/support/users/dl292/),
 * Thanks for testing with the code filter. I’ve carried out some further comparison
   testing on two of my test installations and cannot seem to replicate the behaviour
   you’re experiencing on any of those two installs.
 * Both sites which I tested on have the latest versions of WordPress, WooCommerce,
   Stripe and our free [Storefront](https://wordpress.org/themes/storefront/) theme
   as the only enabled software. On both the single product pages and the checkout
   page the Apple Pay buttons are functioning as I would expect them to.
 * Have you tested on your sites Single Product pages to see if the Apple Pay buttons
   functions there, if it does that would indicate something on your checkout page
   is affecting its functionality?
 * To see if that is the case we’d suggest carrying out a conflict test on your 
   site by disabling all other plugins aside from WooCommerce along with switching
   to a theme like [Storefront](https://wordpress.org/themes/storefront/). This 
   will help with trying to and locate what software you have installed which could
   possibly be causing this behaviour? You could use a free plugin called [Health Check and Troubleshooting](https://wordpress.org/plugins/health-check/)
   to carry out such testing.
 * When in Troubleshooting mode all plugins will be deactivated and only the admin
   of the site carrying out the troubleshooting would see those changes. Any customers
   visiting the site would see no changes at all.
 * Once you have disabled all other plugins and switched theme if the behaviour 
   is resolved you can then enabled your theme and sites plugins testing after each
   one is enabled until the behaviour returns to locate the culprit.
 * [https://docs.woocommerce.com/document/how-to-test-for-conflicts/](https://docs.woocommerce.com/document/how-to-test-for-conflicts/)
 *  Thread Starter [dl292](https://wordpress.org/support/users/dl292/)
 * (@dl292)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/apple-pay-payment-method-issue/#post-13746078)
 * Thanks for your time Stuart. Thats very helpful. I will do as you suggest. 🙂

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Apple Pay payment method issue’ 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/)

 * 6 replies
 * 2 participants
 * Last reply from: [dl292](https://wordpress.org/support/users/dl292/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/apple-pay-payment-method-issue/#post-13746078)
 * Status: resolved