Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions AioSDK/sdk/AllPay.Payment.Integration.php
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,11 @@ 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);
}

function DoCapture(){
return $arFeedback = AioCapture::CheckOut(array_merge($this->Capture,array("MerchantID" => $this->MerchantID)) ,$this->HashKey ,$this->HashIV ,$this->ServiceURL);
}


Expand All @@ -553,9 +557,7 @@ function AioCapture(){
*/
abstract class Aio
{
abstract static function CheckOut();

protected function ServerPost($parameters ,$ServiceURL) {
protected static function ServerPost($parameters ,$ServiceURL) {
$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, $ServiceURL);
Expand Down Expand Up @@ -714,7 +716,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);

Expand Down Expand Up @@ -760,7 +762,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);

Expand Down