Exemplo n.º 1
0
 /**
  * ответ успешно на check
  */
 private function responseSuccess()
 {
     $method = Input::get('action') == 'checkOrder' ? 'checkOrder' : 'paymentAviso';
     $params = $this->parameters();
     Reporter::payResponseSuccess($params['customer_id'], $params['order_id'], $params['payment_id']);
     $dt = date('Y-m-d\\TH:i:s+04:00');
     $response = '<?xml version="1.0" encoding="UTF-8"?><' . $method . 'Response performedDatetime="' . $dt . '" code="0" invoiceId="' . Input::get('invoiceId') . '" shopId="' . Config::get('cloud.yam.shopId') . '"/>';
     \Log::debug('response', [$response]);
     return \Response::make($response, 200, ['Content-Type' => 'application/xml']);
 }
Exemplo n.º 2
0
 /**
  * ответ успешно
  */
 private function responseSuccess()
 {
     $data = ['code' => 0];
     Reporter::payResponseSuccess($this->params['customer_id'], $this->params['payment_id'], $this->params['order_id']);
     Response::json($data)->send();
     die;
 }