/** * сюда от платежного шлюза приходит запрос на pay * * @throws CloudPaymentException */ public function pay() { $this->checkParameters(); $input = Input::all(); Reporter::payExternalPay($input['AccountId'], $input['InvoiceId'], $input['Amount'], $input); $this->filter(); $this->checkOrder(); $this->processPayRequest(); }
/** * сюда от платежного шлюза приходит запрос на pay * * @throws CloudPaymentException */ public function pay() { $this->parseRequest(); $check = $this->checkParameters(); if ($check !== true) { return $check; } $input = Input::all(); Reporter::payExternalPay(Input::get('customerNumber'), Input::get('invoiceId'), Input::get('orderSumAmount'), $input); return $this->processPayRequest(); }