• Resolved roos3342

    (@roos3342)


    I updated the to the newest version of the Stripe plugin, now when I go to the site I get this error:

    Error thrown
    Class ‘WC_Stripe_Apple_Pay’ not found

    With the previous version, I had removed the apple pay from the product pages using the instructions provided here: https://www.remicorson.com/remove-apple-pay-button-on-product-cart-checkout-pages-in-stripe-integration-for-woocommerce/

    When I remove the code from my functions file, the error goes away. Does the codes provided at the link above need to be updated with a new instance name, instead of WC_Stripe_Apple_Pay in order to be compatible with the newest version of the plugin?

    Any help would be greatly appreciated.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor royho

    (@royho)

    Are you looking to just hide it from single product page?

    Thomas Shellberg

    (@shellbeezy)

    Automattic Happiness Engineer

    Hello,

    The Apple Pay button is no longer displayed on Checkout pages, so you don’t need a code snippet any longer to remove it.

    If you want to remove it from Product pages, use this filter:

    add_filter( ‘wc_stripe_hide_payment_request_on_product_page’, ‘__return_true’ );

    Thread Starter roos3342

    (@roos3342)

    Thank you very much, this solves the problem!

    I was just looking to remove it from the single product pages.

    Thanks again.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error thrown Class ‘WC_Stripe_Apple_Pay’ not found’ is closed to new replies.