Commit ea6dc4c3 authored by mattwire's avatar mattwire

Fix params passed to repeatTransaction

parent cea971d1
......@@ -203,10 +203,7 @@ trait CRM_Core_Payment_MJWIPNTrait {
$params['is_email_receipt'] = $this->getSendEmailReceipt();
$params['trxn_id'] = $params['contribution_trxn_id'];
if ($params['previous_contribution']) {
$repeatParams['original_contribution_id'] = $params['previous_contribution']['id'];
}
$contribution = civicrm_api3('Contribution', 'repeattransaction', $repeatParams);
$contribution = civicrm_api3('Contribution', 'repeattransaction', $params);
$this->updatePaymentTrxnID($contribution['id'], $params['payment_trxn_id']);
}
......
## Release 0.4.2
* Fix params passed to repeatTransaction - this was causing some repeating contributions to fail.
## Release 0.4.1
* Fix 'is not boolean' error on IPNs. `getIsTestMode()` was returning TRUE/FALSE but the API requires 1/0.
......
......@@ -13,8 +13,8 @@
<url desc="Support">https://www.mjwconsult.co.uk</url>
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2019-09-17</releaseDate>
<version>0.4.1</version>
<releaseDate>2019-09-19</releaseDate>
<version>0.4.2</version>
<develStage>stable</develStage>
<compatibility>
<ver>5.13</ver>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment