Automattic\WooCommerce\Internal\Admin\Settings\PaymentProviders

Mollie::get_settings_urlpublicWC 1.0

Get the settings URL for a payment gateway.

Method of the class: Mollie{}

No Hooks.

Returns

String. The settings URL for the payment gateway.

Usage

$Mollie = new Mollie();
$Mollie->get_settings_url( $payment_gateway ): string;
$payment_gateway(WC_Payment_Gateway) (required)
The payment gateway object.

Mollie::get_settings_url() code WC 9.8.5

public function get_settings_url( WC_Payment_Gateway $payment_gateway ): string {
	// Don't target any section because there are none to target when Mollie is not connected.
	if ( 'mollie_stand_in' === $payment_gateway->id ) {
		return $this->get_custom_settings_url();
	}

	// Target the payment methods section when the gateway is connected.
	return $this->get_custom_settings_url( 'mollie_payment_methods' );
}