Merge pull request #3491 from woocommerce/PCP-4854-phase-1-opt-in-via-banner

UX Legacy Migration: phase 1 opt in via banner (4854)
This commit is contained in:
Emili Castells 2025-07-07 08:56:59 +02:00 committed by GitHub
commit a6324b4999
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 932 additions and 321 deletions

View file

@ -28,7 +28,7 @@ class SettingsTabMapHelper {
*
* @var array<string, string>
*/
protected const THREE_D_SECURE_VALUES_MAP = array(
public 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',
@ -54,7 +54,7 @@ class SettingsTabMapHelper {
'blocks_final_review_enabled' => 'enable_pay_now',
'logging_enabled' => 'enable_logging',
'vault_enabled' => 'save_paypal_and_venmo',
'3d_secure_contingency' => 'threeDSecure',
'3d_secure_contingency' => 'three_d_secure',
);
}
@ -96,7 +96,7 @@ class SettingsTabMapHelper {
* @return string|null The mapped '3d_secure_contingency' setting value.
*/
protected function mapped_3d_secure_value( array $settings_model ): ?string {
$three_d_secure = $settings_model['threeDSecure'] ?? null;
$three_d_secure = $settings_model['three_d_secure'] ?? null;
if ( ! is_string( $three_d_secure ) ) {
return null;