Can't Pay/Checkout with myCred as only method of payment (2 posts)

  1. jeffmace
    Posted 2 years ago #

    I have just installed the a fresh copy of woocommerce and using myCred. I can not get through checkout with myCred as my only form of payment. I get the error message:

    Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.

    I have shipping disabled (also tried it as free shipping). I have myCred setup as a currency (points), and it will not allow me to finish. Is there something else I need to do so that it recognizes the points as a form of payment.


  2. colson73
    Posted 2 years ago #

    Add the following to your functions.php file in your theme.

    add_action( 'after_setup_theme', 'customize_woo_mycred_gateway', 999 );
    function customize_woo_mycred_gateway() {
    // Remove the gateway hook
    remove_filter( 'woocommerce_available_payment_gateways', 'mycred_woo_available_gateways' );
    // Add our own gateway hook
    add_filter( 'woocommerce_available_payment_gateways', 'mycred_always_show_payment_option_in_woo' );
    function mycred_always_show_payment_option_in_woo( $gateways )
    return $gateways;

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic