Apple Pay/ Google Pay
-
I want to hide Apple Pay / Google Pay from all pages except the final chcekout page. I’ve added the following code to functions.php
add_filter( ‘wc_stripe_hide_payment_request_on_product_page’, ‘__return_true’ );
/// Remove Apple Pay Cart
add_action( ‘init’, ‘remove_stripe_payment_request_from_cart_20200608’, 99 );function remove_stripe_payment_request_from_cart_20200608() {remove_action( ‘woocommerce_proceed_to_checkout’, array( WC_Stripe_Payment_Request::instance(), ‘display_payment_request_button_html’ ), 1 );remove_action( ‘woocommerce_proceed_to_checkout’, array( WC_Stripe_Payment_Request::instance(), ‘display_payment_request_button_separator_html’ ), 2 );}/// Apple Pay Checkout
add_filter( ‘wc_stripe_show_payment_request_on_checkout’, ‘__return_true’ );Google Pay is still showing on the cart page and not on the final checkout page. Let me know what I’m missing. THanks!
- The topic ‘Apple Pay/ Google Pay’ is closed to new replies.