Create a map of new to old setting values

This commit is contained in:
Narek Zakarian 2025-03-24 18:21:21 +04:00
parent 3042e3d6b8
commit 4afe088bfc
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7

View file

@ -20,6 +20,15 @@ use WooCommerce\PayPalCommerce\WcGateway\Gateway\CreditCardGateway;
*/
class PaymentMethodSettingsMapHelper {
/**
* A map of new to old 3d secure values.
*/
protected const THREE_D_SECURE_VALUES_MAP = array(
'no-3d-secure' => 'NO_3D_SECURE',
'only-required-3d-secure' => 'SCA_WHEN_REQUIRED',
'always-3d-secure' => 'SCA_ALWAYS',
);
/**
* Maps old setting keys to new payment method settings names.
*