var VegaCharge = {}; var VegaChargeIndex = {}; var payUrl = "http://pay.vegadisk.com"; VegaCharge = { //payUrl : 'http://pay.vegadisk.com', payUrl : payUrl, // ±âÁ¸ payInfo : { 'phone_SKT' : [ { 'url' : '/pay/danal_all/index.php?', 'nWidth' : '500', 'nHeight' : '680' } ], 'phone_KTF' : [ { 'url' : '/pay/danal_all/index.php?', 'nWidth' : '500', 'nHeight' : '680' } ], 'phone_LGT' : [ { 'url' : '/pay/billgate/pay.php?', 'nWidth' : '500', 'nHeight' : '680' } ], 'phone' : [ { 'url' : '/pay/danal_all/index.php?', 'nWidth' : '500', 'nHeight' : '680' } ], 'phone_lg' : [ { 'url' : '/pay/danal_all/index.php?', 'nWidth' : '500', 'nHeight' : '680' } ], 'kcard' : [ { 'url' : '/pay/danal_all/index.php?', 'nWidth' : '585', 'nHeight' : '620' } ], //'kcard' : [ { 'url' : '/pay/mcash/index.php?', 'nWidth' : '585', 'nHeight' : '620' } ], 'acard' : [ { 'url' : '/pay/mcash/index.php?', 'nWidth' : '585', 'nHeight' : '620' } ], 'culture' : [ { 'url' : '/pay/danal_all/index.php?', 'nWidth' : '500', 'nHeight' : '420' } ], 'happy' : [ { 'url' : '/pay/danal_all/index.php?', 'nWidth' : '500', 'nHeight' : '400' } ], 'dotory' : [ { 'url' : '/pay/danal_all/index.php?', 'nWidth' : '500', 'nHeight' : '420' } ], 'book' : [ { 'url' : '/pay/danal_all/index.php?', 'nWidth' : '500', 'nHeight' : '400' } ], //'ars' : [ { 'url' : '/pay/billgate/pay.php?', 'nWidth' : '470', 'nHeight' : '560' } ], 'ars' : [ { 'url' : '/pay/mcash/index.php?', 'nWidth' : '470', 'nHeight' : '560' } ], 'game' : [ { 'url' : '/pay/danal_all/index.php?', 'nWidth' : '500', 'nHeight' : '400' } ], 'vbank' : [ { 'url' : '/pay/mcash/index.php?', 'nWidth' : '450', 'nHeight' : '600' } ], 'phonebill' : [ { 'url' : '/pay/danal_all/index.php?', 'nWidth' : '500', 'nHeight' : '400' } ], 'realbank' : [ { 'url' : '/pay/danal_all/index.php?', 'nWidth' : '470', 'nHeight' : '560' } ], 'hanaro' : [ { 'url' : '/pay/ars/?', 'nWidth' : '520', 'nHeight' : '610' } ], 'tmoney' : [ { 'url' : '/pay/mcash/index.php?', 'nWidth' : '520', 'nHeight' : '700' } ], 'mileage' : [ { 'url' : '/mileage/mileage_popup.php', 'nWidth' : '520', 'nHeight' : '500' } ] }, // ¸ðºô¸®¾ð½º mobilpayInfo : { 'phone_SKT' : [ { 'url' : '/pay/danal_all/index.php?', 'nWidth' : '500', 'nHeight' : '680' } ], 'phone_KTF' : [ { 'url' : '/pay/danal_all/index.php?', 'nWidth' : '500', 'nHeight' : '680' } ], 'phone_LGT' : [ { 'url' : '/pay/danal_all/index.php?', 'nWidth' : '500', 'nHeight' : '680' } ], 'phone' : [ { 'url' : '/pay/mcash/index.php?', 'nWidth' : '470', 'nHeight' : '480' } ], 'kcard' : [ { 'url' : '/pay/danal_all/index.php?', 'nWidth' : '585', 'nHeight' : '620' } ], 'acard' : [ { 'url' : '/pay/mcash/index.php?', 'nWidth' : '585', 'nHeight' : '620' } ], 'culture' : [ { 'url' : '/pay/mcash/index.php?', 'nWidth' : '550', 'nHeight' : '650' } ], 'book' : [ { 'url' : '/pay/mcash/index.php?', 'nWidth' : '500', 'nHeight' : '510' } ], 'ars' : [ { 'url' : '/pay/mcash/index.php?', 'nWidth' : '470', 'nHeight' : '560' } ], 'game' : [ { 'url' : '/pay/mcash/index.php?', 'nWidth' : '470', 'nHeight' : '680' } ], 'vbank' : [ { 'url' : '/pay/mcash/index.php?', 'nWidth' : '450', 'nHeight' : '600' } ], 'phonebill' : [ { 'url' : '/pay/mcash/index.php?', 'nWidth' : '470', 'nHeight' : '560' } ], 'realbank' : [ { 'url' : '/pay/danal_all/index.php?', 'nWidth' : '470', 'nHeight' : '560' } ], 'hanaro' : [ { 'url' : '/pay/mcash/index.php?', 'nWidth' : '520', 'nHeight' : '610' } ], 'tmoney' : [ { 'url' : '/pay/mcash/index.php?', 'nWidth' : '520', 'nHeight' : '700' } ], 'mileage' : [ { 'url' : '/mileage/mileage_popup.php', 'nWidth' : '520', 'nHeight' : '500' } ] }, payRequest : function( sMethod ){ var flat_idx = ''; if(base_form.flat_idx){ flat_idx = eval( base_form.flat_idx.value ); } if( flat_idx != '' && base_form.userFlat.value == '1' ) { alert("ÀÌ¹Ì Á¤¾×Á¦¸¦ »ç¿ëÁß À̽ʴϴÙ.\n\nÁ¤¾×Á¦´Â Áߺ¹À¸·Î ÀÌ¿ë ÇÏ½Ç ¼ö ¾ø½À´Ï´Ù."); return false; } if(sMethod == "vbank") { var obj = eval( 'this.mobilpayInfo.' + sMethod ); }else{ var obj = eval( 'this.payInfo.' + sMethod ); } var nIdx = base_form.moneyIdx.value; var payMethodCode = base_form.payMethodCode.value; var payLink = ''; payLink = this.payUrl + obj[0].url + 'moneyIdx=' + nIdx + '&flatIdx=' + flat_idx + '&payMethodCode=' + payMethodCode + '&CodePay=' + sMethod; document.domain = "vegadisk.com"; var options = ''; options = 'width=' + obj[0].nWidth + ',height=' + obj[0].nHeight; window.open( payLink, '', options ); return false; } }; VegaChargeIndex = { //payUrl : 'http://pay.vegadisk.com', payUrl : payUrl, // ±âÁ¸ payInfo : { 'phone_SKT' : [ { 'url' : '/pay/danal_all/index.php?', 'nWidth' : '500', 'nHeight' : '680' } ], 'phone_KTF' : [ { 'url' : '/pay/danal_all/index.php?', 'nWidth' : '500', 'nHeight' : '680' } ], //'phone_LGT' : [ { 'url' : '/pay/billgate/pay.php?', 'nWidth' : '500', 'nHeight' : '680' } ], 'phone_LGT' : [ { 'url' : '/pay/danal_all/index.php?', 'nWidth' : '500', 'nHeight' : '680' } ], 'phone' : [ { 'url' : '/pay/danal_all/index.php?', 'nWidth' : '500', 'nHeight' : '680' } ], 'phone_lg' : [ { 'url' : '/pay/danal_all/index.php?', 'nWidth' : '500', 'nHeight' : '680' } ], 'kcard' : [ { 'url' : '/pay/danal_all/index.php?', 'nWidth' : '585', 'nHeight' : '620' } ], //'kcard' : [ { 'url' : '/pay/mcash/index.php?', 'nWidth' : '585', 'nHeight' : '620' } ], 'acard' : [ { 'url' : '/pay/mcash/index.php?', 'nWidth' : '585', 'nHeight' : '620' } ], 'card' : [ { 'url' : '/pay/daoupay/index.php?', 'nWidth' : '585', 'nHeight' : '620' } ], 'culture' : [ { 'url' : '/pay/danal_all/index.php?', 'nWidth' : '500', 'nHeight' : '420' } ], 'happy' : [ { 'url' : '/pay/danal_all/index.php?', 'nWidth' : '500', 'nHeight' : '400' } ], 'dotory' : [ { 'url' : '/pay/danal_all/index.php?', 'nWidth' : '500', 'nHeight' : '420' } ], 'book' : [ { 'url' : '/pay/danal_all/index.php?', 'nWidth' : '500', 'nHeight' : '400' } ], //'ars' : [ { 'url' : '/pay/billgate/pay.php?', 'nWidth' : '470', 'nHeight' : '560' } ], 'ars' : [ { 'url' : '/pay/mcash/index.php?', 'nWidth' : '470', 'nHeight' : '560' } ], 'game' : [ { 'url' : '/pay/danal_all/index.php?', 'nWidth' : '500', 'nHeight' : '400' } ], 'vbank' : [ { 'url' : '/pay/mcash/index.php?', 'nWidth' : '450', 'nHeight' : '600' } ], 'phonebill' : [ { 'url' : '/pay/danal_all/index.php?', 'nWidth' : '500', 'nHeight' : '400' } ], 'realbank' : [ { 'url' : '/pay/danal_all/index.php?', 'nWidth' : '470', 'nHeight' : '560' } ], 'cashbee' : [ { 'url' : '/pay/cashbee/ready.php?', 'nWidth' : '500', 'nHeight' : '680' } ], 'vpay' : [ { 'url' : '/pay/vpay/index.php?', 'nWidth' : '480', 'nHeight' : '420' } ], 'yelopay' : [ { 'url' : '/pay/yelopay/index.php?', 'nWidth' : '450', 'nHeight' : '580' } ], 'hanaro' : [ { 'url' : '/pay/ars/?', 'nWidth' : '520', 'nHeight' : '610' } ], 'tmoney' : [ { 'url' : '/pay/mcash/index.php?', 'nWidth' : '520', 'nHeight' : '700' } ], 'vbank_billgate' : [ { 'url' : '/pay/billgate/vbank.php?', 'nWidth' : '520', 'nHeight' : '540' } ], 'mileage' : [ { 'url' : '/mileage/mileage_popup.php?', 'nWidth' : '520', 'nHeight' : '500' } ], 'okcashbag' : [ { 'url' : '/okcashbag/pay.php?', 'nWidth' : '500', 'nHeight' : '765' } ] }, // ¸ðºô¸®¾ð½º mobilpayInfo : { 'phone' : [ { 'url' : '/pay/mcash/index.php?', 'nWidth' : '470', 'nHeight' : '480' } ], 'kcard' : [ { 'url' : '/pay/danal_all/index.php?', 'nWidth' : '585', 'nHeight' : '620' } ], 'acard' : [ { 'url' : '/pay/mcash/index.php?', 'nWidth' : '585', 'nHeight' : '620' } ], 'culture' : [ { 'url' : '/pay/mcash/index.php?', 'nWidth' : '550', 'nHeight' : '650' } ], 'book' : [ { 'url' : '/pay/mcash/index.php?', 'nWidth' : '500', 'nHeight' : '510' } ], 'ars' : [ { 'url' : '/pay/mcash/index.php?', 'nWidth' : '470', 'nHeight' : '560' } ], 'game' : [ { 'url' : '/pay/mcash/index.php?', 'nWidth' : '470', 'nHeight' : '680' } ], 'vbank' : [ { 'url' : '/pay/mcash/index.php?', 'nWidth' : '450', 'nHeight' : '495' } ], 'phonebill' : [ { 'url' : '/pay/mcash/index.php?', 'nWidth' : '470', 'nHeight' : '560' } ], 'realbank' : [ { 'url' : '/pay/danal_all/index.php?', 'nWidth' : '470', 'nHeight' : '560' } ], 'hanaro' : [ { 'url' : '/pay/mcash/index.php?', 'nWidth' : '520', 'nHeight' : '610' } ], 'tmoney' : [ { 'url' : '/pay/mcash/index.php?', 'nWidth' : '520', 'nHeight' : '700' } ], 'mileage' : [ { 'url' : '/mileage/mileage_popup.php?', 'nWidth' : '520', 'nHeight' : '500' } ] }, payRequest : function( sMethod ){ var flat_idx = ''; var pmode = ''; if(sMethod=='cashbee') { this.payUrl = 'http://27.102.199.50'; var cashbee_param = "&userid="+charge_form.userid.value; cashbee_param += "&domain=vegadisk.com"; } else { this.payUrl = 'http://pay.vegadisk.com'; } if(charge_form.flat_idx){ flat_idx = eval( charge_form.flat_idx.value ); } if( flat_idx != '' && charge_form.userFlat.value == '1' ) { alert("ÀÌ¹Ì Á¤¾×Á¦¸¦ »ç¿ëÁß À̽ʴϴÙ.\n\nÁ¤¾×Á¦´Â Áߺ¹À¸·Î ÀÌ¿ë ÇÏ½Ç ¼ö ¾ø½À´Ï´Ù."); return false; } if(sMethod == "vbank") { var obj = eval( 'this.mobilpayInfo.' + sMethod ); }else{ if(sMethod == "phone_KTF" || sMethod == "phone_SKT" || sMethod == "phone_LGT") { var obj = eval( 'this.payInfo.' + sMethod ); // sMethod = 'phone'; // var obj = eval( 'this.mobilpayInfo.' + sMethod ); }else{ var obj = eval( 'this.payInfo.' + sMethod ); } //var obj = eval( 'this.payInfo.' + sMethod ); } if(charge_form.pmode.value) { pmode = charge_form.pmode.value; } var nIdx = charge_form.moneyIdx.value; var payMethodCode = charge_form.payMethodCode.value; var event = charge_form.event.value; var payLink = ''; var userid = charge_form.userid.value; payLink = this.payUrl + obj[0].url + 'moneyIdx=' + nIdx + '&flatIdx=' + flat_idx + '&payMethodCode=' + payMethodCode + '&CodePay=' + sMethod + '&pmode=' + pmode + '&event=' + event + '&userid=' + userid; //payLink = this.payUrl + obj[0].url + 'moneyIdx=' + nIdx + '&flatIdx=' + flat_idx + '&payMethodCode=' + payMethodCode + '&CodePay=' + sMethod + '&pmode=' + pmode + '&event=' + event ; if(cashbee_param) { payLink = payLink + cashbee_param; } document.domain = "vegadisk.com"; var options = ''; options = 'width=' + obj[0].nWidth + ',height=' + obj[0].nHeight; window.open( payLink, '', options ); return false; } };