Automattic\WooCommerce\Internal\Admin\Settings\PaymentProviders

Mollie::get_pseudo_gatewaypublicWC 1.0

Get the pseudo Mollie gateway object.

Method of the class: Mollie{}

No Hooks.

Returns

PseudoWCPaymentGateway. The pseudo gateway object.

Usage

$Mollie = new Mollie();
$Mollie->get_pseudo_gateway( $suggestion ): PseudoWCPaymentGateway;
$suggestion(array) (required)
The suggestion data.

Mollie::get_pseudo_gateway() code WC 9.9.4

public function get_pseudo_gateway( array $suggestion ): PseudoWCPaymentGateway {
	// We will generate a generic gateway to represent Mollie in the settings page.
	// The generic gateway's state will be not enabled, not connected, and not onboarded.
	// The presentational details will be minimal, letting the suggestion provide most of the information.
	return new PseudoWCPaymentGateway(
		'mollie_stand_in',
		array(
			'method_title'         => $suggestion['title'],
			'method_description'   => $suggestion['description'],
			'enabled'              => false,
			'needs_setup'          => true,
			'test_mode'            => false,
			'dev_mode'             => false,
			'account_connected'    => false,
			'onboarding_started'   => false,
			'onboarding_completed' => false,
			'settings_url'         => $this->get_custom_settings_url(),
			'plugin_slug'          => $suggestion['plugin']['slug'],
			'plugin_file'          => $suggestion['plugin']['file'],
		),
	);
}