src/Gateways/InstaMojoGateway.php
public function response($request)
    {
        $payment_request_id = Request::input('payment_request_id');
        $payment_id = Request::input('payment_id');

        $client = new \GuzzleHttp\Client();
        $response = $client->get($this->getEndPoint('payment-requests/'.$payment_request_id.'/'.$payment_id.'/'),
            [
                'headers'=> array(
                    'X-Api-Key' => $this->api_key,
                    'X-Auth-Token' => $this->auth_token,
                ),
            ])->getBody()->getContents();
        $response = json_decode($response);

        if($response->success){
            return $response;
        }

        return false;

    }
public function response($request)
    {
        $payment_request_id = Request::input('payment_request_id');
        $payment_id = Request::input('payment_id');

        $client = new \GuzzleHttp\Client();
        $response = $client->get($this->getEndPoint('payment-requests/'.$payment_request_id.'/'.$payment_id.'/'),
            [
                'headers'=> array(
                    'X-Api-Key' => $this->api_key,
                    'X-Auth-Token' => $this->auth_token,
                ),
            ])->getBody()->getContents();
        $response = json_decode($response);

        if($response->success){
            return $response;
        }

        return false;

    }
Check Response
@param $request
@return array