(() => { const platform = 'mobile'; const devHostKeywords = ['alpha-', 'localhost', '127.0.0.1', 'devfe', 'gej0308', 'alphamyapp', 'alphaeasypay']; const environment = devHostKeywords.some((hostKeyword) => location.hostname.includes(hostKeyword)) ? 'alpha' : 'real'; // 네이버페이 SDK V2 사용 몰은 제거해도 됩니다. const naverPayScript = { real: { pc: 'https://pay.naver.com/customer/js/naverPayButton.js', mobile: 'https://pay.naver.com/customer/js/mobile/naverPayButton.js', }, alpha: { pc: 'https://test-pay.naver.com/customer/js/naverPayButton.js', mobile: 'https://test-pay.naver.com/customer/js/mobile/naverPayButton.js', }, }; // 네이버페이 SDK V2 (버튼 통합 SDK) — platform 구분 없이 단일 스크립트 const naverPayV2Script = { real: 'https://npay-order.pstatic.net/assets/button/latest/npay.button.js', alpha: 'https://test-pay.naver.com/assets/button/latest/npay.button.js', }; document.write(``); document.write(``); })();