Init
extends RemoteSpecsEngine
in package
Remote Payment Methods engine.
This goes through the specs and gets eligible payment gateways.
Table of Contents
- RECOMMENDED_PAYMENT_PLUGINS_DISMISS_OPTION = 'woocommerce_setting_payments_recommendations_hidden'
- Option name for dismissed payment method suggestions.
- __construct() : mixed
- Constructor.
- delete_specs_transient() : mixed
- Delete the specs transient.
- dismiss() : mixed
- Dismiss the suggestions.
- get_specs() : mixed
- Get specs or fetch remotely if they don't exist.
- get_suggestions() : array<string|int, mixed>
- Go through the specs and run them.
- log_errors() : mixed
- Log errors.
- should_display() : bool
- Check if suggestions should be shown in the settings screen.
Constants
RECOMMENDED_PAYMENT_PLUGINS_DISMISS_OPTION
Option name for dismissed payment method suggestions.
public
mixed
RECOMMENDED_PAYMENT_PLUGINS_DISMISS_OPTION
= 'woocommerce_setting_payments_recommendations_hidden'
Methods
__construct()
Constructor.
public
__construct() : mixed
Return values
mixed —delete_specs_transient()
Delete the specs transient.
public
static delete_specs_transient() : mixed
Return values
mixed —dismiss()
Dismiss the suggestions.
public
static dismiss() : mixed
Return values
mixed —get_specs()
Get specs or fetch remotely if they don't exist.
public
static get_specs() : mixed
Return values
mixed —get_suggestions()
Go through the specs and run them.
public
static get_suggestions([array<string|int, mixed>|null $specs = null ]) : array<string|int, mixed>
Parameters
- $specs : array<string|int, mixed>|null = null
-
payment suggestion spec array.
Return values
array<string|int, mixed> —log_errors()
Log errors.
public
static log_errors([array<string|int, mixed> $errors = array() ]) : mixed
Parameters
- $errors : array<string|int, mixed> = array()
-
Array of errors from \Throwable interface.
Return values
mixed —should_display()
Check if suggestions should be shown in the settings screen.
public
static should_display() : bool