public function formatJsonResponse(IpnEntity $ipn)
 {
     $response = ['status' => 'ok', 'code' => 200, 'data' => ['transaction_id' => $ipn->txn_id, 'transaction_type' => $ipn->txn_type, 'matches' => $ipn->getInvoiceMatches(), 'ipn' => $ipn->jsonSerialize(), 'timestamp' => date('Y-m-d h:i:s', time())]];
     if ($this->httpRequest) {
         $response['data'] = $this->setRequestData($response['data']);
     }
     return $response;
 }