• Resolved dani202

    (@dani202)


    Apple Pay stopped showing up on my product pages.
    They’re available on the cart and checkout, but product pages just don’t show this anymore.

    Chrome console shows the following error, but I’m not sure where why this is coming up suddenly.

    applepay-product.min.js:1 Uncaught ReferenceError: wc_stripe_applepay_product_params is not defined at new t (applepay-product.min.js:1:53) at applepay-product.min.js:1:2364 at applepay-product.min.js:1:2371 t @ applepay-product.min.js:1 (anonymous) @ applepay-product.min.js:1 (anonymous) @ applepay-product.min.js:1

    Issue seems to also occur with Google Pay.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @dani202

    The code related to how that works has not changed in years. Therefore, the most likely reason would be related to something changing on your site recently that would prevent that variable from being loaded.

    I looked at your product page and the variable wc_stripe_applepay_product_params is defined, however it’s being inserted into your product page after the Apple Pay script is loaded. The order should be the opposite, meaning the variable wc_stripe_applepay_product_params should be loaded first, then the script.

    You have something on your site that’s altering the load order.

    Kind Regards

    Thread Starter dani202

    (@dani202)

    Not entirely sure what was going on there, but it looks like it might have been related to some server level/Cloudflare optimization.

    Started to tear away some of that from the config and Apple Pay loaded up on the page again.

    Thanks for pointing out the load order issue…appreciate your assistance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.