Update Recurring end_date when setting status to completed
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 23 Jun 2023 04:45:10 +0000 (21:45 -0700)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 23 Jun 2023 04:50:40 +0000 (21:50 -0700)
commita6e27f8be8f4c251864664e1bb8bac5efaf698ba
tree4e07ff129279a1441a918a7b9709e87446dc155a
parentbadce7e88b4875972e752110c880408952b41286
Update Recurring end_date when setting status to completed

This moves the logic from Authorize.net to the ContributionRecur function that is called
when a contribution is added to a recurring such that when it determines it is completed
it also sets the end_date
CRM/Contribute/BAO/ContributionRecur.php
CRM/Core/Payment/AuthorizeNetIPN.php
tests/phpunit/CRM/Core/Payment/AuthorizeNetIPNTest.php
tests/phpunit/CiviTest/CiviUnitTestCase.php