From 4916dbe2e3bdf505889b15ff873ac2e142d81ceb Mon Sep 17 00:00:00 2001 From: Matthieu Guffroy Date: Fri, 27 Sep 2013 10:39:14 +0200 Subject: [PATCH] Renommage de Notification() en notification() --- src/Payutc/Bom/Payline.php | 4 ++-- src/Payutc/Service/PAYLINE.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Payutc/Bom/Payline.php b/src/Payutc/Bom/Payline.php index c200bdc..6f3a716 100644 --- a/src/Payutc/Bom/Payline.php +++ b/src/Payutc/Bom/Payline.php @@ -87,7 +87,7 @@ public function doWebPayment($usr, $amount, $returnURL, $cancelURL=null) { } else { $this->payline->cancelURL = $returnURL; } - $this->payline->notificationURL = Config::get('server_url') . "PAYLINE/Notification"; + $this->payline->notificationURL = Config::get('server_url') . "PAYLINE/notification"; // Insert a payline row in db and get the payment ref $conn = Dbal::conn(); @@ -149,7 +149,7 @@ public function doWebPayment($usr, $amount, $returnURL, $cancelURL=null) { /* Recoit une notification de payline */ - public function Notification($token) { + public function notification($token) { $array = array(); $array['token'] = $token; $array['version'] = ''; diff --git a/src/Payutc/Service/PAYLINE.php b/src/Payutc/Service/PAYLINE.php index 757c4b8..b2b2e15 100644 --- a/src/Payutc/Service/PAYLINE.php +++ b/src/Payutc/Service/PAYLINE.php @@ -14,11 +14,11 @@ class PAYLINE { /** * Declenchement d'une notification de payline */ - public function Notification() { + public function notification() { global $_GET; if(isset($_GET['token'])) { $pl = new \Payutc\Bom\Payline(0, "PAYLINE"); - $pl->Notification($_GET['token']); + $pl->notification($_GET['token']); } }