for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Generalization over Omnipay and Payum
*
* @link https://github.com/hiqdev/php-merchant
* @package php-merchant
* @license BSD-3-Clause
* @copyright Copyright (c) 2015-2017, HiQDev (http://hiqdev.com/)
*/
namespace hiqdev\php\merchant\yandex;
* Yandex Omnipay Merchant class.
class OmnipayMerchant extends \hiqdev\php\merchant\OmnipayMerchant
{
public $requestClass = OmnipayRequest::class;
public function getWorker()
if ($this->_worker === null) {
$this->_worker = (new \yandexmoney\YandexMoney\GatewayIndividual())
->initialize($this->prepareData($this->data));
}
return $this->_worker;
public function prepareData(array $data)
return array_merge([
'account' => $data['purse'],
'password' => $data['secret'],
], $data);