Pay buttons dont show in order pay page

[ad_1]

For some reason, i cannot make the apple/google pay button to show in the order pay page (checkout/order-pay/).

im using this snippet to move the pay button in the checkout page and it works well for the regular checkout page, but the buttons dont show in the order pay page.

if ( class_exists( 'WC_Stripe_Payment_Request' ) ) {
    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 );

    add_action( 'woocommerce_review_order_before_payment', array( WC_Stripe_Payment_Request::instance(), 'display_payment_request_button_html' ), 1 );
}

Can you help with this? Thank you in advance

  • This topic was modified 55 minutes ago by 19db.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer