instance = wc_apa()->get_gateway(); // Gateway is not active. if ( ! $this->instance->is_available() ) { return false; } return true; } /** * Content of express checkout methods. * * @return void * @since 1.1.0 */ public function content() { echo '
'; echo $this->instance->checkout_button( false ); echo '
'; } /** * Hooks to integrate current gateway with sellkit checkout widget. * * @return void * @since 1.1.0 */ public function hooks() { remove_action( 'woocommerce_before_checkout_form', [ $this->instance, 'checkout_message' ], 5 ); } }