'title' => 'Campaign',
'name' => 'big_campaign',
]);
+ $contributionPage = $this->contributionPageCreate(['receipt_text' => 'Thank you!']);
$this->ids['Contribution']['alice'] = $this->callAPISuccess('Contribution', 'create', [
'contact_id' => $this->contacts['alice']['id'],
'receive_date' => date('Ymd', strtotime($this->targetDate)),
'cancel_date' => '2021-08-09',
'contribution_status_id' => 1,
'campaign_id' => $campaignID,
+ 'contribution_page_id' => $contributionPage['id'],
'soft_credit' => [
'1' => [
'contact_id' => $this->contacts['carol']['id'],
balance_amount = {contribution.balance_amount}
campaign_id = {contribution.campaign_id}
campaign name = {contribution.campaign_id:name}
- campaign label = {contribution.campaign_id:label}';
+ campaign label = {contribution.campaign_id:label}
+ receipt text = {contribution.contribution_page_id.receipt_text}';
$this->schedule->save();
$this->callAPISuccess('job', 'send_reminder', []);
'campaign_id = 1',
'campaign name = big_campaign',
'campaign label = Campaign',
+ 'receipt text = Thank you!',
];
$this->mut->checkMailLog($expected);
{assign var="greeting" value="{contact.email_greeting_display}"}{if $greeting}{$greeting},{/if}
-{ts}Below you will find a receipt for this contribution.{/ts}
+{if {contribution.contribution_page_id.receipt_text|boolean}}
+{contribution.contribution_page_id.receipt_text}
+{else}{ts}Below you will find a receipt for this contribution.{/ts}
+{/if}
===========================================================
{ts}Contribution Information{/ts}