Пример #1
0
 /**
  * @return string
  */
 public function getPaymentConfig()
 {
     $payment = $this->config->getConfig()['payment'];
     $config = $payment[$this->getCode()];
     $config['code'] = $this->getCode();
     return json_encode($config, JSON_UNESCAPED_SLASHES);
 }
Пример #2
0
 /**
  * Check if vault enabled
  * @return bool
  */
 public function isVaultEnabled()
 {
     $vault = $this->vaultConfigProvider->getConfig()[VaultPaymentInterface::CODE];
     return $vault['is_enabled'] && $vault['vault_provider_code'] == ConfigProvider::CODE;
 }