Skip to content

Commit

Permalink
Merge pull request #4 from baptiste-dulac/dev
Browse files Browse the repository at this point in the history
Update SystemPay.php
  • Loading branch information
baptiste-dulac committed Dec 2, 2014
2 parents 317ae55 + 1c117d4 commit dae712c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Tlconseil/SystempayBundle/Service/SystemPay.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function __construct(EntityManager $entityManager, Container $container)
$this->entityManager = $entityManager;
foreach ($this->mandatoryFields as $field => $value)
$this->mandatoryFields[$field] = $container->getParameter(sprintf('tlconseil_systempay.%s', $field));
if ($this->mandatoryFields['ctx_mode'])
if ($this->mandatoryFields['ctx_mode'] == "TEST")
$this->key = $container->getParameter('tlconseil_systempay.key_dev');
else
$this->key = $container->getParameter('tlconseil_systempay.key_prod');
Expand Down Expand Up @@ -196,4 +196,4 @@ private function getSignature($fields = null)
$signature = sha1($contenu_signature);
return $signature;
}
}
}

0 comments on commit dae712c

Please sign in to comment.