• 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 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 Author Clayton R

    (@mrclayton)

    Hi @kirakorok

    You’ve contacted the wrong plugin support. I can tell from the code you’re referencing that you’re using another Stripe plugin.

    My plugin displays Apple Pay along with the other payment options on the checkout page by default.

    Kind regards,

    Thread Starter kirakorok

    (@kirakorok)

    Oh sorry, I’ve messed it up, thanks for the quick answer. If that’s the case, I’ll download your plugin!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Apple Pay button’ is closed to new replies.