Address payment processor notice in thankyou .tpl
authorEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 18 Dec 2023 12:22:56 +0000 (01:22 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 18 Dec 2023 12:25:40 +0000 (01:25 +1300)
CRM/Contribute/Form/Contribution/ThankYou.php
templates/CRM/Contribute/Form/Contribution/ThankYou.tpl

index 157d83827fa01fa87605e2f9c85ebca26f058216..16d31432ccbc443364339660b5007199e34d480b 100644 (file)
@@ -278,6 +278,7 @@ class CRM_Contribute_Form_Contribution_ThankYou extends CRM_Contribute_Form_Cont
     }
 
     $this->assign('isPendingOutcome', $this->isPendingOutcome($params));
+    $this->assign('paymentProcessorName', $this->getPaymentProcessorValue('frontend_title'));
     $this->freeze();
 
     // can we blow away the session now to prevent hackery
index cca5cf38c024712f3ae822493baab50080f9c629..948173ce9430edddcee63691259cf945ba0ab1ab 100644 (file)
@@ -45,7 +45,7 @@
         </div>
       {/if}
     {elseif $isPendingOutcome}
-      <div>{ts 1=$paymentProcessor.name}Your contribution has been submitted to %1 for processing.{/ts}</div>
+      <div>{ts 1=$paymentProcessorName|escape}Your contribution has been submitted to %1 for processing.{/ts}</div>
         {if $is_email_receipt}
       <div>
         {if $onBehalfEmail AND ($onBehalfEmail neq $email)}