Hi,
before a recent update, payment gateway appear correctly, but since payment gateway no more loaded or more exactly registered too late. I correct that by changing plugin loading like below.
In woo-wallet.php, I replace :
$GLOBALS[‘woo_wallet’] = woo_wallet();
by :
add_action( ‘plugins_loaded’, ‘woocommerce_gateway_woowallet_init’ );
function woocommerce_gateway_woowallet_init() {
global $GLOBALS;
$GLOBALS[‘woo_wallet’] = woo_wallet();
}
and in class-woo-wallet.php, I move this part of code from init() to init_hooks(), just after “add_action( ‘init’, array( $this, ‘init’ ), 5);”, line 151.
// move from init() to init_hooks()
$this->load_plugin_textdomain();
$this->add_marketplace_support();
include_once( WOO_WALLET_ABSPATH . ‘includes/class-woo-wallet-payment-method.php’ );
add_filter( ‘woocommerce_payment_gateways’, array( $this, ‘load_gateway’ ) );
And with that, all is back to normal. So could you say if this update is possible, as I can continue to update this plugin from wordpress.
Best regards.