From a951ad61bd2f7f561774b1abb8d6a74103f9dafe Mon Sep 17 00:00:00 2001 From: Jin Date: Thu, 28 Jul 2016 12:47:12 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E7=A7=BB=E9=99=A4=20Aio=20=E4=B8=AD=20abst?= =?UTF-8?q?ract=20static=20function=20CheckOut()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AioSDK/sdk/AllPay.Payment.Integration.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/AioSDK/sdk/AllPay.Payment.Integration.php b/AioSDK/sdk/AllPay.Payment.Integration.php index 8dce764..2fd8af2 100644 --- a/AioSDK/sdk/AllPay.Payment.Integration.php +++ b/AioSDK/sdk/AllPay.Payment.Integration.php @@ -553,8 +553,6 @@ function AioCapture(){ */ abstract class Aio { - abstract static function CheckOut(); - protected function ServerPost($parameters ,$ServiceURL) { $ch = curl_init(); From 8b1eaad8e348aa6ff609ec1594a99668c2318133 Mon Sep 17 00:00:00 2001 From: Jin Date: Thu, 28 Jul 2016 12:48:51 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20Aio=20function=20Serve?= =?UTF-8?q?rPost=20=E7=82=BA=20static?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AioSDK/sdk/AllPay.Payment.Integration.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AioSDK/sdk/AllPay.Payment.Integration.php b/AioSDK/sdk/AllPay.Payment.Integration.php index 2fd8af2..fc130da 100644 --- a/AioSDK/sdk/AllPay.Payment.Integration.php +++ b/AioSDK/sdk/AllPay.Payment.Integration.php @@ -553,7 +553,7 @@ function AioCapture(){ */ abstract class Aio { - protected function ServerPost($parameters ,$ServiceURL) { + protected static function ServerPost($parameters ,$ServiceURL) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $ServiceURL); @@ -712,7 +712,7 @@ static function CheckOut($arParameters = array(),$HashKey ='',$HashIV ='',$Servi if (sizeof($arErrors) == 0) { $arParameters["CheckMacValue"] = CheckMacValue::generate($arParameters,$HashKey,$HashIV,0); // 送出查詢並取回結果。 - $szResult = parent::ServerPost($arParameters,$ServiceURL); + $szResult = self::ServerPost($arParameters,$ServiceURL); $szResult = str_replace(' ', '%20', $szResult); $szResult = str_replace('+', '%2B', $szResult); @@ -758,7 +758,7 @@ static function CheckOut($arParameters = array(),$HashKey ='',$HashIV ='',$Servi if (sizeof($arErrors) == 0) { $arParameters["CheckMacValue"] = CheckMacValue::generate($arParameters,$HashKey,$HashIV,0); // 送出查詢並取回結果。 - $szResult = parent::ServerPost($arParameters,$ServiceURL); + $szResult = self::ServerPost($arParameters,$ServiceURL); $szResult = str_replace(' ', '%20', $szResult); $szResult = str_replace('+', '%2B', $szResult); From 64f44b3213d9464d8ba19d53be9f827ea7262a44 Mon Sep 17 00:00:00 2001 From: Jin Date: Thu, 28 Jul 2016 12:49:56 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20AioCapture=20=E5=91=BC?= =?UTF-8?q?=E5=8F=AB=E7=9A=84=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AioSDK/sdk/AllPay.Payment.Integration.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AioSDK/sdk/AllPay.Payment.Integration.php b/AioSDK/sdk/AllPay.Payment.Integration.php index fc130da..db14be9 100644 --- a/AioSDK/sdk/AllPay.Payment.Integration.php +++ b/AioSDK/sdk/AllPay.Payment.Integration.php @@ -540,7 +540,7 @@ function AioChargeback() { } function AioCapture(){ - return $arFeedback = AioCapture::Capture(array_merge($this->Capture,array("MerchantID" => $this->MerchantID)) ,$this->HashKey ,$this->HashIV ,$this->ServiceURL); + return $arFeedback = AioCapture::CheckOut(array_merge($this->Capture,array("MerchantID" => $this->MerchantID)) ,$this->HashKey ,$this->HashIV ,$this->ServiceURL); } From 29a4ea9fd0beff6efb70a2b6de44e021f835863e Mon Sep 17 00:00:00 2001 From: Jin Date: Thu, 28 Jul 2016 12:57:27 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E8=88=8A=E7=89=88=20SDK?= =?UTF-8?q?=20=E6=92=AD=E6=AC=BE=20function=20DoCapture?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AioSDK/sdk/AllPay.Payment.Integration.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AioSDK/sdk/AllPay.Payment.Integration.php b/AioSDK/sdk/AllPay.Payment.Integration.php index db14be9..6783675 100644 --- a/AioSDK/sdk/AllPay.Payment.Integration.php +++ b/AioSDK/sdk/AllPay.Payment.Integration.php @@ -543,6 +543,10 @@ function AioCapture(){ return $arFeedback = AioCapture::CheckOut(array_merge($this->Capture,array("MerchantID" => $this->MerchantID)) ,$this->HashKey ,$this->HashIV ,$this->ServiceURL); } + function DoCapture(){ + return $arFeedback = AioCapture::CheckOut(array_merge($this->Capture,array("MerchantID" => $this->MerchantID)) ,$this->HashKey ,$this->HashIV ,$this->ServiceURL); + } +