나이스페이 승인 취소 안정성 보강
(cherry picked from commit 7c26e621c66805b2d162ed0293e570e29a11b4e8)
This commit is contained in:
1 parent
bb4d345add
commit
ff1f6d723b
4 files changed
+31
-2
No files matched your search
@@ -166,6 +166,14 @@ if($authResultCode === "0000"){
|
||||
$responseSignData = bin2hex(hash('sha256', $tno . $mid . $response_amt . $merchantKey, true));
|
||||
|
||||
if ($responseSignature != $responseSignData) {
|
||||
if($amount > 0 && $tno) {
|
||||
$od_id = $moid;
|
||||
$cancel_msg = '승인 응답 유효성 검증 실패';
|
||||
$cancelAmt = $amount;
|
||||
$partialCancelCode = 0;
|
||||
include G5_SHOP_PATH.'/nicepay/cancel_process.php';
|
||||
}
|
||||
|
||||
alert("승인 응답 유효성 검증이 틀려서 결제를 진행할수 없습니다.", G5_SHOP_URL);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user