Add Fastlane settings to the AXO payment gateway settings screen

This commit is contained in:
Daniel Dudzic 2024-04-29 14:38:43 +02:00
parent 92a7747ae0
commit 6fbd4f3890
No known key found for this signature in database
GPG key ID: 31B40D33E3465483
5 changed files with 51 additions and 24 deletions

View file

@ -195,6 +195,7 @@ return array(
CardButtonGateway::ID,
OXXOGateway::ID,
Settings::PAY_LATER_TAB_ID,
AxoGateway::ID,
),
true
);

View file

@ -9,6 +9,7 @@ declare(strict_types=1);
namespace WooCommerce\PayPalCommerce\WcGateway\Settings;
use WooCommerce\PayPalCommerce\Axo\Gateway\AxoGateway;
use WooCommerce\PayPalCommerce\WcGateway\Gateway\CardButtonGateway;
use WooCommerce\PayPalCommerce\WcGateway\Gateway\CreditCardGateway;
use WooCommerce\PayPalCommerce\WcGateway\Gateway\PayPalGateway;
@ -37,6 +38,7 @@ trait PageMatcherTrait {
Settings::PAY_LATER_TAB_ID => Settings::PAY_LATER_TAB_ID,
CreditCardGateway::ID => 'dcc', // TODO: consider using just the gateway ID for PayPal and DCC too.
CardButtonGateway::ID => CardButtonGateway::ID,
AxoGateway::ID => 'axo',
);
return array_key_exists( $current_page_id, $gateway_page_id_map )
&& in_array( $gateway_page_id_map[ $current_page_id ], $allowed_gateways, true );