Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders
Mollie::get_pseudo_gateway
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() Mollie::get pseudo gateway code WC 10.8.1
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'],
),
);
}