KG이니시스 IDC 센터코드 검증 추가2
This commit is contained in:
42
shop/inicis/libs/properties.php
Normal file
42
shop/inicis/libs/properties.php
Normal file
@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
class properties {
|
||||
|
||||
function getAuthUrl($idc_name) {
|
||||
$url = "stdpay.inicis.com/api/payAuth";
|
||||
switch ($idc_name) {
|
||||
case 'fc':
|
||||
$authUrl = "https://fc".$url;
|
||||
break;
|
||||
case 'ks':
|
||||
$authUrl = "https://ks".$url;
|
||||
break;
|
||||
case 'stg':
|
||||
$authUrl = "https://stg".$url;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return $authUrl;
|
||||
}
|
||||
|
||||
function getNetCancel($idc_name) {
|
||||
$url = "stdpay.inicis.com/api/netCancel";
|
||||
switch ($idc_name) {
|
||||
case 'fc':
|
||||
$netCancel = "https://fc".$url;
|
||||
break;
|
||||
case 'ks':
|
||||
$netCancel = "https://ks".$url;
|
||||
break;
|
||||
case 'stg':
|
||||
$netCancel = "https://stg".$url;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return $netCancel;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user