Commit 2f7c399a authored by mattwire's avatar mattwire
Browse files

Fix stripe#238 two receipts sent for subscriptions

parent 0639d1ee
......@@ -233,7 +233,8 @@ trait CRM_Core_Payment_MJWIPNTrait {
// Create the new contribution
$contributionParams['trxn_id'] = $params['order_reference'];
$contributionParams['is_email_receipt'] = $this->getSendEmailReceipt();
// We send a receipt when adding a payment, not now
$contributionParams['is_email_receipt'] = FALSE;
$contribution = civicrm_api3('Contribution', 'repeattransaction', $contributionParams);
if ($createPayment) {
......
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