gateways = WC()->payment_gateways->get_available_payment_gateways(); if ( false === $this->requirements() ) { return; } $this->hooks(); add_action( 'sellkit-checkout-widget-express-methods', [ $this, 'content' ] ); } /** * Check requirement to enable gateway in sellkit checkout widget. * * @return bool * @since 1.1.0 */ abstract protected function requirements(); /** * Content of express checkout methods. * * @return void * @since 1.1.0 */ abstract protected function content(); /** * Hooks to integrate current gateway with sellkit checkout widget. * * @return void * @since 1.1.0 */ abstract protected function hooks(); }