notices = new Notices();
$this->metabox = new Metabox();
$this->actions = new WoocommerceActions();
$this->requests = new PayplugWoocommerceRequest();
$this->ajax = new Ajax();
new PayplugOneyDetail();
add_action( 'woocommerce_payment_gateways', [ $this, 'register_payplug_gateway' ] );
add_filter( 'plugin_action_links_' . PAYPLUG_GATEWAY_PLUGIN_BASENAME, [ $this, 'plugin_action_links' ] );
}
/**
* Register PayPlug gateway.
*
* @param $methods
*
* @return array
*/
public function register_payplug_gateway( $methods ) {
$methods[] = __NAMESPACE__ . '\\Gateway\\PayplugGateway';
$methods[] = __NAMESPACE__ . '\\Gateway\\PayplugGatewayOney3x';
$methods[] = __NAMESPACE__ . '\\Gateway\\PayplugGatewayOney4x';
return $methods;
}
/**
* Add additional action links.
*
* @param array $links
*
* @return array
*/
public function plugin_action_links( $links = [] ) {
$plugin_links = [
'' . esc_html__( 'Settings', 'payplug' ) . '',
];
return array_merge( $plugin_links, $links );
}
}