Refactor field page checking

Reduce code duplication and support more than 2 pages.
Also remove 'all'
This commit is contained in:
Alex P 2021-09-16 12:40:00 +03:00
parent b2904504f4
commit 620f25d88d
5 changed files with 74 additions and 15 deletions

View file

@ -700,7 +700,7 @@ return array(
State::STATE_ONBOARDED,
),
'requirements' => array(),
'gateway' => 'all',
'gateway' => array( 'paypal', 'dcc' ),
),
'logging_enabled' => array(
'title' => __( 'Logging', 'woocommerce-paypal-payments' ),