• Resolved dustycat

    (@dustycat)


    I’ve searched the forum and found a previous ticket regarding setting a default payment gateway on the checkout page.

    Someone from Woo stated that they were working on a new feature (which appears to be the ability to change the order of the gateways in wp-admin and have them appear in this order on the checkout page)

    However, while the ORDER of the gateways changes, the default one on my store remains as BACS rather than Debit/Credit card (my Stripe gateway). Perhaps this is something to do with BACS being a default Woo gateway rather than one added via a plugin.

    But adding code to functions.php isn’t an acceptable “workaround” for this – the plugin needs changing so that the radio button on the checkout page defaults to the gateway that is the first in the list – or there needs to be a way in wp-admin to set which gateway is the default.

    Can this please be sorted out asap

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dustycat

    (@dustycat)

    What I did manage to do to trick WooCommerce into defaulting to my Stripe gateway was the following:

    Deactivate all other gateways.
    Save Changes
    Refresh checkout page/clear cache
    Reorder gateways to preferred order
    Reactivate all additional gateways
    Save Changes
    Refresh checkout page

    The checkout page now has my Stripe gateway displayed first AND selected by default.

    So it appears that rather than the default gateway being a function of the order they are displayed in wp-admin, it is rather a function of the order in which they are activated. The first one activated becomes the default.

    Saif

    (@babylon1999)

    Hello @dustycat,

    Glad to hear you’ve figured it out and thank you so much for sharing your findings with the community!

    As an alternative workaround, you can achieve the same result programmatically. Here’s a ready-to-use snippet for example: https://stackoverflow.com/questions/50245125/change-the-default-selected-payment-gateway-in-woocommerce

    I also invite you to create a GitHub report so this can be addressed in future releases: https://github.com/woocommerce/woocommerce

    Please note issue reports are not only for bugs, you can make suggestions/enhancements as well.

    Since nothing can be added here, I will go ahead and mark the thread as solved. Please feel free to open a new one if you have any other questions.

    Cheers!

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

The topic ‘Default Payment Gateway’ is closed to new replies.