• Resolved kirakorok

    (@kirakorok)


    Hi!

    Currently, at the checkout page, the apple pay button is displayed on the top of the page and not with the other payment gateways at the bottom. I’m not sure what’s causing this issue, because every other payment method I add is appearing at the bottom. I would like to have all the buttons together, but I don’t see any options where I can move it to the bottom.

    I’ve tried to rearrange it with this code, but it only caused a fatal error:

    /*
    * Removes Apple Pay button on the checkout page.
    */
    remove_action( ‘woocommerce_checkout_before_customer_details’, array( WC_Stripe_Apple_Pay::instance(), ‘display_apple_pay_button’ ), 1 );
    remove_action( ‘woocommerce_checkout_before_customer_details’, array( WC_Stripe_Apple_Pay::instance(), ‘display_apple_pay_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_Apple_Pay::instance(), ‘display_apple_pay_separator_html’ ), 1 );
    add_action( ‘woocommerce_checkout_after_customer_details’, array( WC_Stripe_Apple_Pay::instance(), ‘display_apple_pay_button’ ), 2 );

    Is there a way where I can move the button to the other payments?
    Thank you in advance!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    Hey there!

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    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 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Apple pay button displayed separately’ is closed to new replies.