• Resolved computerkid1

    (@computerkid1)


    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!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter computerkid1

    (@computerkid1)

    Actually that did work, it was a caching issue! Can you guys help in moving this section to the bottom of the page? Right now it’s at the very top. I would like for it to be right above all other payments (credit card/paypal) etc

    Plugin Support Senff – a11n

    (@senff)

    Hey @computerkid1

    Can you share a link to your site? That way we can take a look and see if it’s actually possible to move the Apple/Google buttons on the checkout page. ??

    • This reply was modified 4 years, 2 months ago by Senff - a11n.
    Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Apple Pay/ Google Pay’ is closed to new replies.