-
-
Notifications
You must be signed in to change notification settings - Fork 810
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30628 from demeritcowboy/pcp
dev/core#5335 - Only show pcp section on online receipt if there is a pcp
- Loading branch information
Showing
2 changed files
with
16 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -321,17 +321,20 @@ public function testIPNPaymentMembershipRecurSuccessNoLeakage(): void { | |
'Anderson', | ||
'Email Address', | ||
'[email protected]', | ||
'Honor', | ||
'This membership will be automatically renewed every', | ||
'Dear Anthony', | ||
'Thanks for your auto renew membership sign-up', | ||
'In Memory of', | ||
]); | ||
$mails = $mut->getAllMessages(); | ||
foreach ($mails as $mail) { | ||
$mut->checkMailForStrings([], ['Honor'], '', $mail); | ||
} | ||
$mut->clearMessages(); | ||
$this->_contactID = $this->individualCreate(['first_name' => 'Antonia', 'prefix_id' => 'Mrs.', 'email' => '[email protected]']); | ||
|
||
// Note, the second contribution is not in honor of anyone and the | ||
// receipt should not mention honor at all. | ||
// Note, the second contribution is not in memory of anyone and the | ||
// receipt should not mention memory at all. | ||
$this->setupMembershipRecurringPaymentProcessorTransaction(['is_email_receipt' => TRUE], ['invoice_id' => '345']); | ||
$IPN = new CRM_Core_Payment_AuthorizeNetIPN($this->getRecurTransaction(['x_trans_id' => 'hers'])); | ||
$IPN->main(); | ||
|