Skip to content
Snippets Groups Projects
Commit f6e09506 authored by capo's avatar capo Committed by mattwire
Browse files

Disable email receipt before calling the IPN

parent 1c4061f4
Branches
Tags
1 merge request!1096.4
......@@ -98,14 +98,14 @@ function civicrm_api3_stripe_Ipn($params) {
$_GET['processor_id'] = $ppid;
$ipnClass = new CRM_Core_Payment_StripeIPN($object);
$ipnClass->setExceptionMode(FALSE);
if ($params['noreceipt'] == 1) {
$ipnClass->setSendEmailReceipt(0);
}
try {
$ipnClass->main();
} catch(Throwable $e) {
return civicrm_api3_create_error($e->getMessage());
}
if ($params['noreceipt'] == 1) {
$ipnClass->setSendEmailReceipt(0);
}
}
else {
trigger_error("The api depends on CRM_Core_Payment_StripeIPN");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment