• Resolved francescolaperna

    (@francescolaperna)


    Hi,
    I’m using Woocommerce and Woocommerce Blocks in my store.
    I added WooCommerce Stripe Payment Gateway and I would like to use Apple & Google Pay options.
    However, I don’t want the ApplePay button to appear before everything else in the Checkout page (even before the customer details), I would like it to appear at the end (if possible together with other payment methods available, if not at least after them as a separate button).

    Do you know how I can achieve something similar?

    I’ve already tried the following snippet code (added in my functions.php file) but it’s not working at all.

    /*
    * Adds then moves Apple Pay button on the checkout page.
    */
    
    add_filter( 'wc_stripe_show_payment_request_on_checkout', '__return_true' );
    
    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_after_checkout_form', array( WC_Stripe_Payment_Request::instance(), 'display_payment_request_button_html' ), 2 );
    add_action( 'woocommerce_after_checkout_form', array( WC_Stripe_Payment_Request::instance(), 'display_payment_request_button_separator_html' ), 1 );

    Many thanks in advance.
    Francesco

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Shohan Hossain Nabil – a11n

    (@sohanhossain)

    Hi @francescolaperna,

    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.

    Thanks!

    Hi there,

    This is marked as resolved but I see no solution :-S
    Can anyone share it?

    Thanks

    Plugin Support lionel.a11n

    (@lioneldaniel)

    Hello @devsbatg,

    Issues are marked ‘Resolved’ if they are outside the scope of support and have been inactive for some time. We try to point people to development resources (and even snippets if we have a possible solution handy), and give space for community members who sometimes have the knowledge to do the same. After some time of inactivity we mark abandoned requests like this as ‘Resolved’ to clear our queue.

    If you want help with development, the resources for programmers my colleague pointed out are great. I especially think the #developers Slack channel is an interactive way to get hands-on advice on your code.

    If you have a question of your own, please do open a new thread – it will get more attention than these older threads.

    Hope that helps, and have a great day!

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