Skip to content

Commit

Permalink
Merge pull request #3 from delphiki/scellius-support
Browse files Browse the repository at this point in the history
Add support for Scellius
  • Loading branch information
ekyna authored Mar 22, 2021
2 parents 9854667 + cf4ff50 commit 521dcdf
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Api/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -452,16 +452,19 @@ private function getCardsCodes()

private function getEndPoints()
{
return [null, 'SYSTEMPAY'];
return [null, 'SYSTEMPAY', 'SCELLIUS'];
}

private function getUrl()
{
if ($this->config['endpoint'] === 'SYSTEMPAY') {
return 'https://paiement.systempay.fr/vads-payment/';
switch($this->config['endpoint']) {
case 'SYSTEMPAY':
return 'https://paiement.systempay.fr/vads-payment/';
case 'SCELLIUS':
return 'https://scelliuspaiement.labanquepostale.fr/vads-payment/';
default:
return 'https://secure.payzen.eu/vads-payment/';
}

return 'https://secure.payzen.eu/vads-payment/';
}

private function hash(string $content) {
Expand Down

0 comments on commit 521dcdf

Please sign in to comment.