From cf4ff5033b35962f727ae6dc9cf5f7e87a20b4e9 Mon Sep 17 00:00:00 2001 From: delphiki Date: Mon, 22 Mar 2021 15:42:09 +0100 Subject: [PATCH] Add support for Scellius --- Api/Api.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Api/Api.php b/Api/Api.php index 9858a8e..5ceea14 100644 --- a/Api/Api.php +++ b/Api/Api.php @@ -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) {