Unverified Commit 978a41b0 authored by JonGold's avatar JonGold

Don't add a webhook for a payment processor belonging to another domain

parent 7c8e345e
......@@ -120,6 +120,7 @@ class CRM_AuthorizeNet_Webhook {
$result = civicrm_api3('PaymentProcessor', 'get', [
'class_name' => ['IN' => ['Payment_AuthNetCreditcard', 'Payment_AuthNeteCheck']],
'is_active' => 1,
'domain_id' => CRM_Core_Config::domainID(),
]);
foreach ($result['values'] as $paymentProcessor) {
......
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