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
abstract class AbstractSignatureRequest extends AbstractRequest
{
use Concerns\RequestEndpoint;
use Concerns\RequestSignature;
* {@inheritdoc}
public function getData(): array
$parameters = $this->getParameters();
call_user_func_array(
[$this, 'validate'],
$this->getSignatureParameters()
);
$parameters['vpc_SecureHash'] = $this->generateSignature();
unset($parameters['vpc_HashKey'], $parameters['testMode']);
return $parameters;
}