Commit 6bd876e3 authored by mattwire's avatar mattwire
Browse files

getallheaders() only exists on apache

parent f15d7879
......@@ -765,9 +765,8 @@ abstract class CRM_Core_Payment_AuthorizeNetCommon extends CRM_Core_Payment {
* @throws \CiviCRM_API3_Exception
*/
public static function handlePaymentNotification() {
$headers = getallheaders();
$payload = file_get_contents("php://input");
$ipnClass = new CRM_Core_Payment_AuthNetIPN($payload, $headers);
$ipnClass = new CRM_Core_Payment_AuthNetIPN($payload);
if ($ipnClass->main()) {
http_response_code(200);
}
......
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