Ejemplo n.º 1
0
 protected function setUp()
 {
     $this->object = Helper::create(['gateway' => $this->gateway]);
 }
Ejemplo n.º 2
0
 /**
  * Creates merchant instance from its array configuration.
  *
  * @param string $id     ID
  * @param array  $config merchant instance configuration.
  * @return AbstractMerchant merchant instance.
  */
 public function createMerchant($id, array $config)
 {
     return Helper::create(array_merge(['library' => $this->merchantLibrary, 'gateway' => $id, 'id' => $id], $config));
 }