public function __construct(Config $config) { parent::__construct($config); $this->merchant_id = $config->getMerchant()->getId(); $this->currency = $config->getMerchant()->getCurrency(); $this->date = date('Y-m-d H:i:s'); $this->_data = self::renameFields($this->getFieldsMap(), $this->config->getRequest(), false); }
public function __construct(Config $config) { parent::__construct($config); $this->_data = self::renameFields($this->getFieldsMap(), $this->config->getQuery(), false); }
public function checkRequired() { $this->version = $this->getVersion(); $this->hash = $this->createHash(); return parent::checkRequired(); }
public function __construct(Config $config) { parent::__construct($config); }
/** * @dataProvider renameFieldsProvider * @param $map * @param $array * @param $expected * @outputBuffering disabled */ public function testRenameFields($map, $array, $expected) { $result = Transaction::renameFields($map, $array); $this->assertEquals($expected, $result); }