나이스페이 주문정보 입력 오류시 결제 취소 코드 추가 및 불필요한 코드 제거

This commit is contained in:
thisgun
2024-09-04 12:55:05 +09:00
parent 3474be175d
commit 20eb993757
10 changed files with 22 additions and 25 deletions

View File

@ -36,8 +36,6 @@ try{
'CharSet' => 'utf-8'
);
if (function_exists('add_log')) add_log($data);
/*
****************************************************************************************
* <Cancel Request>
@ -46,9 +44,6 @@ try{
$response = nicepay_reqPost($data, "https://pg-api.nicepay.co.kr/webapi/cancel_process.jsp"); //Cancel API call
$result = json_decode($response, true);
if (function_exists('add_log')) add_log(array('1'=>1));
if (function_exists('add_log')) add_log($result, true, 'cc');
}catch(Exception $e){
$e->getMessage();