Webhook Verify : Undefined index: HTTP_X_SHOPIFY_HMAC_SHA256

When I placed an order on the Shopify website in my development store, I’m not able to get the payload of orders, earlier it was working fine, and I was getting the payload. But now, when I debug, find out, not getting the HTTP_X_SHOPIFY_HMAC_SHA256 from the array of $_SERVER. So maybe the reason, my code is not working fine and going ahead of this line. Please help, if anyone can assist here.

My small code snippet:

<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Shopifyhandler extends CI_Controller { public $events; function __construct(){ parent::__construct(); $this->load->model('Shopify_model'); } public function index($event=null,$key=null) { echo "hello"; } public function cust($event=null,$key=null) { echo $event; echo $key; } public function verify_webhook($data, $hmac_header) { $calculated_hmac = base64_encode(hash_hmac('sha256', $data, SPFSECRET, true)); return hash_equals($hmac_header, $calculated_hmac); } public function customers($event=null) { $hmac_header = $_SERVER['HTTP_X_SHOPIFY_HMAC_SHA256']; // $hmac_header = $_SERVER['X-Shopify-Hmac-Sha256']; $json = file_get_contents('php://input'); $verified =$this->verify_webhook($json, $hmac_header); if (!$verified) { http_response_code(401); exit; } else { $orderarray = json_decode($json, TRUE); $data = array(); $data['shop_id']=$orderarray['shop_id']; $data['shop_domain']= $orderarray['shop_domain']; $data['orders_requested']=serialize($orderarray['orders_requested']); $data['customer']=serialize(['customer']); $data['created_on']= date('Y-m-d H:i:s'); if($event == 'data_request'){ $this->Shopify_model->customers_data_request($data); } if($event == 'redact'){ $this->Shopify_model->customers_redact($data); } header("HTTP/1.1 200 OK"); } //file_put_contents(FCPATH."shopifyresponse.txt", $json); } public function shop($event=null) { $hmac_header = $_SERVER['HTTP_X_SHOPIFY_HMAC_SHA256']; //$hmac_header = $_SERVER['X-Shopify-Hmac-Sha256']; $json = file_get_contents('php://input'); $verified =$this->verify_webhook($json, $hmac_header); if (!$verified) { http_response_code(401); exit; } else { $orderarray = json_decode($json, TRUE); $data = array(); $data['shop_id']=$orderarray['shop_id']; $data['shop_domain']= $orderarray['shop_domain']; if($event == 'redact'){ $this->Shopify_model->shop_redact($data); } header("HTTP/1.1 200 OK"); } //file_put_contents(FCPATH."shopifyresponse.txt", $json); } public function order($event=null,$key=null) { $hmac_header = $_SERVER['HTTP_X_SHOPIFY_HMAC_SHA256']; // $hmac_header = $_SERVER['X-Shopify-Hmac-Sha256']; $json = file_get_contents('php://input'); $verified =$this->verify_webhook($json, $hmac_header); //file_put_contents(FCPATH."buyboatresponse.txt", $this->input->request_headers()); //file_put_contents(FCPATH."shopifyresponse.txt", $json); if (!$verified) { http_response_code(401); exit; } else { $apikey = $this->Shopify_model->getapikey($key); $orderarray = json_decode($json, TRUE);