for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @link https://github.com/phpviet/omnipay-onepay
* @copyright (c) PHP Viet
* @license [MIT](http://www.opensource.org/licenses/MIT)
*/
namespace Omnipay\OnePay\Message;
* @author Vuong Minh <[email protected]>
* @since 1.0.0
class IncomingRequest extends AbstractRequest
{
* {@inheritdoc}
public function getData(): array
call_user_func_array(
[$this, 'validate'],
array_keys($parameters = $this->getIncomingParameters())
);
return $parameters;
}
* @throws \Omnipay\Common\Exception\InvalidResponseException
public function sendData($data): IncomingResponse
return $this->response = new IncomingResponse($this, $data);
public function initialize(array $parameters = [])
parent::initialize($parameters);
foreach ($this->getIncomingParameters() as $parameter => $value) {
$this->setParameter($parameter, $value);
return $this;
* Trả về danh sách parameters từ OnePay gửi sang.
*
* @return array
protected function getIncomingParameters(): array
return $this->httpRequest->query->all();