PHP8 버전에서 경고코드가 나올수 있는 코드 추가 수정

This commit is contained in:
thisgun
2021-01-25 18:10:33 +09:00
parent 290a86e6d5
commit 13074c2ee1
4 changed files with 17 additions and 10 deletions

View File

@ -2,7 +2,9 @@
//최종결제요청 결과 성공 DB처리 실패시 Rollback 처리
$isDBOK = false; //DB처리 실패시 false로 변경해 주세요.
if( !$isDBOK ) {
$xpay->Rollback($cancel_msg . " [TID:" . $xpay->Response("LGD_TID",0) . ",MID:" . $xpay->Response("LGD_MID",0) . ",OID:" . $xpay->Response("LGD_OID",0) . "]");
if( isset($xpay) && method_exists($xpay, 'Rollback')) {
$xpay->Rollback($cancel_msg . " [TID:" . $xpay->Response("LGD_TID",0) . ",MID:" . $xpay->Response("LGD_MID",0) . ",OID:" . $xpay->Response("LGD_OID",0) . "]");
}
/*
echo "TX Rollback Response_code = " . $xpay->Response_Code() . "<br>";