스마트폰 결제 모듈 적용

This commit is contained in:
chicpro
2013-05-08 17:21:18 +09:00
parent 2c97a30dde
commit 3850ae8fe3
14 changed files with 804 additions and 923 deletions

View File

@ -1,37 +1,35 @@
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: no-store");
header("Pragma: no-cache");
include_once('./_common.php');
include "../settle_kcp.inc.php";
require "KCPComLibrary.php"; // library [수정불가]
include G4_MSHOP_PATH.'/kcp/settle_kcp.inc.php';
require G4_MSHOP_PATH.'/kcp/KCPComLibrary.php'; // library [수정불가]
?>
<?php
// 쇼핑몰 페이지에 맞는 문자셋을 지정해 주세요.
$charSetType = "utf-8"; // UTF-8인 경우 "utf-8"로 설정
$charSetType = 'utf-8'; // UTF-8인 경우 "utf-8"로 설정
$siteCode = $_GET[ "site_cd" ];
$orderID = $_GET[ "ordr_idxx" ];
$paymentMethod = $_GET[ "pay_method" ];
$escrow = ( $_GET[ "escw_used" ] == "Y" ) ? true : false;
$productName = $_GET[ "good_name" ];
$siteCode = $_GET[ 'site_cd' ];
$orderID = $_GET[ 'ordr_idxx' ];
$paymentMethod = $_GET[ 'pay_method' ];
$escrow = ( $_GET[ 'escw_used' ] == 'Y' ) ? true : false;
$productName = $_GET[ 'good_name' ];
// 아래 두값은 POST된 값을 사용하지 않고 서버에 SESSION에 저장된 값을 사용하여야 함.
$paymentAmount = $_GET[ "good_mny" ]; // 결제 금액
$returnUrl = $_GET[ "Ret_URL" ];
$paymentAmount = $_GET[ 'good_mny' ]; // 결제 금액
$returnUrl = $_GET[ 'Ret_URL' ];
// Access Credential 설정
$accessLicense = "";
$signature = "";
$timestamp = "";
$accessLicense = '';
$signature = '';
$timestamp = '';
// Base Request Type 설정
$detailLevel = "0";
$requestApp = "WEB";
$detailLevel = '0';
$requestApp = 'WEB';
$requestID = $orderID;
$userAgent = $_SERVER['HTTP_USER_AGENT'];
$version = "0.1";
$version = '0.1';
try
{