Skip to content

Commit

Permalink
Merge pull request #30000 from artfulrobot/issue/5155
Browse files Browse the repository at this point in the history
Fix dev/core issue-5155: Contribution page help text does not match f…
  • Loading branch information
demeritcowboy authored Apr 18, 2024
2 parents 799d421 + 73b3c6b commit 340c6ef
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CRM/Core/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,13 @@ public function getText($context, $params) {
return '';

case 'contributionPageContinueText':
return ts('Click the <strong>Continue</strong> button to proceed with the payment.');
if ($params['amount'] <= 0.0 || (int) $this->_paymentProcessor['billing_mode'] === 4) {
return ts('Click the <strong>Continue</strong> button to proceed with the payment.');
}
if ($params['is_payment_to_existing']) {
return ts('Click the <strong>Make Payment</strong> button to proceed with the payment.');
}
return ts('Click the <strong>Make Contribution</strong> button to proceed with the payment.');

case 'contributionPageConfirmText':
if ($params['amount'] <= 0.0) {
Expand Down

0 comments on commit 340c6ef

Please sign in to comment.