/**
  * ответ ошибка на check
  *
  * @param string $errorMessage
  * @param int $code
  *
  * @return \Illuminate\Http\Response
  */
 private function responseError($errorMessage, $code = 100)
 {
     $method = Input::get('action') == 'checkOrder' ? 'checkOrder' : 'paymentAviso';
     $params = $this->parameters();
     Reporter::payResponseError($params['customer_id'], $params['order_id'], $params['payment_id'], $errorMessage);
     $dt = date('Y-m-d\\TH:i:s+04:00');
     $response = '<?xml version="1.0" encoding="UTF-8"?><' . $method . 'Response performedDatetime="' . $dt . '" code="' . $code . '" invoiceId="' . Input::get('invoiceId') . '" shopId="' . Config::get('cloud.yam.shopId') . '" message="' . $errorMessage . '" techMessage="' . $errorMessage . '"/>';
     \Log::debug('response', [$response]);
     return \Response::make($response, 200, ['Content-Type' => 'application/xml']);
 }
 /**
  * ответ ошибка
  *
  * @param $errorCode
  */
 private function responseError($errorCode)
 {
     $data = ['code' => $errorCode];
     $params = $this->parameters();
     Reporter::payResponseError($params['customer_id'], $params['order_id'], $params['payment_id'], $errorCode);
     Response::json($data)->send();
     die;
 }