Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders\WooPayments
WooPaymentsService::get_payment_gateway
Get the main payment gateway instance.
Method of the class: WooPaymentsService{}
No Hooks.
Returns
\WC_Payment_Gateway. The main payment gateway instance.
Usage
// private - for code of main (parent) class only $result = $this->get_payment_gateway(): \WC_Payment_Gateway;
WooPaymentsService::get_payment_gateway() WooPaymentsService::get payment gateway code WC 10.7.0
private function get_payment_gateway(): \WC_Payment_Gateway {
return $this->proxy->call_static( '\WC_Payments', 'get_gateway' );
}