Move Buy With Apple Pay Button
-
Hi,
I’m trying to move the Apple Pay button from top of checkout to near where the other options are. I have looked through the documentation and found this below but it breaks my site now.
Do you know what the latest version should be?
Thanks a lot/*
* Removes Apple Pay button on the checkout page.
*/
remove_action( ‘woocommerce_checkout_before_customer_details’, array( WC_Stripe_Payment_Request::instance(), ‘display_payment_request_button_html’ ), 1 );
remove_action( ‘woocommerce_checkout_before_customer_details’, array( WC_Stripe_Payment_Request::instance(), ‘display_payment_request_button_separator_html’ ), 2 );
/*
* Adds Apple Pay button on the checkout page, below customers details, and inverse button/separator order.
*/
add_action( ‘woocommerce_checkout_after_customer_details’, array( WC_Stripe_Payment_Request::instance(), ‘display_payment_request_button_separator_html’ ), 1 );
add_action( ‘woocommerce_checkout_after_customer_details’, array( WC_Stripe_Payment_Request::instance(), ‘display_payment_request_button_html’ ), 2 );The page I need help with: [log in to see the link]
- The topic ‘Move Buy With Apple Pay Button’ is closed to new replies.