Esempio n. 1
0
 /**
  * Inject the configuration for a Gateway.
  *
  * @param string[] $config
  *
  * @return void
  */
 public function __construct(array $config)
 {
     Arr::requires($config, ['private_key']);
     $config['version'] = $this->apiVersion;
     $config['locale'] = $this->locale;
     parent::__construct($config);
 }
Esempio n. 2
0
 /**
  * Inject the configuration for a Gateway.
  *
  * @param string[] $config
  *
  * @return void
  */
 public function __construct(array $config)
 {
     Arr::requires($config, ['username', 'password', 'signature']);
     $config['version'] = $this->apiVersion;
     $config['test'] = (bool) Arr::get($config, 'test', false);
     parent::__construct($config);
 }