Skip to content

Commit

Permalink
Change message strings
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaymo committed May 18, 2024
1 parent 6b9e2f4 commit 57f6253
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Gateway/GatewayModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ public function in3FieldsMandatoryPayForOrder($order)
if (!$phoneValue) {
wc_add_notice(
sprintf(
__('%s is a required field. Valid phone format +000000000', 'mollie-payments-for-woocommerce'),
__('%s is a required field. Valid phone format +316xxxxxxxx', 'mollie-payments-for-woocommerce'),
"<strong>$phoneLabel</strong>"
),
'error'
Expand Down Expand Up @@ -786,7 +786,7 @@ public function addPaymentMethodMandatoryFieldsPhoneVerification(
$errors->add(
'validation',
sprintf(
__('%s is a required field. Valid phone format +000000000', 'woocommerce'),
__('%s is a required field. Valid phone format +316xxxxxxxx', 'woocommerce'),
"<strong>$fieldLabel</strong>"
)
);
Expand Down
4 changes: 2 additions & 2 deletions src/PaymentMethods/In3.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ public function getConfig(): array
'confirmationDelayed' => false,
'orderMandatory' => true,
'errorMessage' => __(
'Required field is empty or invalid. Phone (+00..) and birthdate fields are required.',
'Required field is empty or invalid. Phone (+316xxxxxxxx) and birthdate fields are required.',
'mollie-payments-for-woocommerce'
),
'phonePlaceholder' => __('Please enter your phone here. +00..', 'mollie-payments-for-woocommerce'),
'phonePlaceholder' => __('Please enter your phone here. +316xxxxxxxx', 'mollie-payments-for-woocommerce'),
'birthdatePlaceholder' => __('Please enter your birthdate here.', 'mollie-payments-for-woocommerce'),
];
}
Expand Down

0 comments on commit 57f6253

Please sign in to comment.