Skip to content

Commit

Permalink
Change surcharge description
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaymo committed Nov 18, 2024
1 parent 87c5043 commit d0a2174
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Gateway/Surcharge.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function buildDescriptionWithSurchargeForBlock(PaymentMethodI $paymentMet
}
$feeText = $this->feeTextByType($surchargeType, $paymentMethod);
$feeText = is_string($feeText) ? $defaultDescription . ' ' . html_entity_decode($feeText) : false;
$defaultFeeText = $defaultDescription . ' ' . __('A surchage fee might apply');
$defaultFeeText = $defaultDescription . ' ' . __('A surchage fee will apply');

return $feeText ?: $defaultFeeText;
}
Expand Down Expand Up @@ -259,7 +259,7 @@ protected function name_fixed_fee($paymentMethod)
$amountFee = $paymentMethod->getProperty(self::FIXED_FEE);
$currency = get_woocommerce_currency_symbol();
/* translators: Placeholder 1: Fee amount tag. Placeholder 2: Currency.*/
return sprintf(__(' + %1$s %2$s fee might apply', 'mollie-payments-for-woocommerce'), $currency, $amountFee);
return sprintf(__(' + %1$s %2$s fee will apply', 'mollie-payments-for-woocommerce'), $currency, $amountFee);
}

/**
Expand All @@ -276,7 +276,7 @@ protected function name_percentage($paymentMethod)
}
$amountFee = $paymentMethod->getProperty(self::PERCENTAGE);
/* translators: Placeholder 1: Fee amount tag.*/
return sprintf(__(' + %1$s%% fee might apply', 'mollie-payments-for-woocommerce'), $amountFee);
return sprintf(__(' + %1$s%% fee will apply', 'mollie-payments-for-woocommerce'), $amountFee);
}

/**
Expand All @@ -300,7 +300,7 @@ protected function name_fixed_fee_percentage($paymentMethod)
$amountPercent = $paymentMethod->getProperty(self::PERCENTAGE);
return sprintf(
/* translators: Placeholder 1: Fee amount tag. Placeholder 2: Currency. Placeholder 3: Percentage amount. */
__(' + %1$s %2$s + %3$s%% fee might apply', 'mollie-payments-for-woocommerce'),
__(' + %1$s %2$s + %3$s%% fee will apply', 'mollie-payments-for-woocommerce'),
$currency,
$amountFix,
$amountPercent
Expand Down

0 comments on commit d0a2174

Please sign in to comment.