WooCommerce Code Reference

Init
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.
should_display()  : bool
Check if suggestions should be shown in the settings screen.

Constants

Option name for dismissed payment method suggestions.

public mixed RECOMMENDED_PAYMENT_PLUGINS_DISMISS_OPTION = 'woocommerce_setting_payments_recommendations_hidden'

Methods

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>