Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders\WooPayments

WooPaymentsService::get_payment_gatewayprivateWC 1.0

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() code WC 10.7.0

private function get_payment_gateway(): \WC_Payment_Gateway {
	return $this->proxy->call_static( '\WC_Payments', 'get_gateway' );
}