Skip to content

Commit cde5328

Browse files
author
Ryder Hsieh
committed
修正錯誤訊息處理
1 parent 3dfc5bf commit cde5328

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/PayuniApi.php

+3
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ public function ResultProcess($result) {
160160
throw new Exception('Result must be an array');
161161
}
162162
}
163+
if ("ERROR" == $resultArr['Status'] ) {
164+
return ['success' => true, 'message' => $resultArr];
165+
}
163166
if (isset($resultArr['EncryptInfo'])){
164167
if (isset($resultArr['HashInfo'])){
165168
$chkHash = $this->HashInfo($resultArr['EncryptInfo']);

0 commit comments

Comments
 (0)