Webhook call Error: Call to undefined function getallheaders() in CRM_Core_Payment_AuthorizeNetCommon::handlePaymentNotification() (line 768 of com.donordepot.authnetecheck/CRM/Core/Payment/AuthorizeNet
The webhook url https://www.example.org/civicrm/payment/ipn/7 throws a php fatal error causing ipn requests to not process.
Error: Call to undefined function getallheaders() in CRM_Core_Payment_AuthorizeNetCommon::handlePaymentNotification() (line 768 of com.donordepot.authnetecheck/CRM/Core/Payment/AuthorizeNetCommon.php).
Version used: 2.1.1
Based on https://www.php.net/manual/en/function.getallheaders.php if nginx is being used instead of apache, the getallheaders() might not work. And also proposes a solution: