HIS .Institute
회원 가입 후 로그인 하고 좌측에서 [결제 연동]
식별 코드
고객사 식별코드
채널관리
<!DOCTYPE html><html><head><meta charset="UTF-8"><title>Insert title here</title></head><body><link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous"><script src="https://cdn.iamport.kr/v1/iamport.js"></script><h1> 카드 결제 테스트 </h1><button type="button" class="btn btn-danger" onclick="requestpay()">유료회원결제 990원</button><script>IMP.init("imp45077715"); // 예: 'imp00000000'function requestpay() {IMP.request_pay( { pg: "danal_tpay", pay_method: "card", merchant_uid: "austin" + uuidv4(), // 주문 고유 번호 name: "유료회원권결제", amount: 990, buyer_email: "gildong@gmail.com", buyer_name: "홍길동", buyer_tel: "010-4242-4242", buyer_addr: "서울특별시 강남구 신사동", buyer_postcode: "01181", }, function (response) { alert("결제 성공") }, ); }function uuidv4() { return ([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g, c => (c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16) ); } console.log(uuidv4());</script><script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script></body></html>
HISInstitute | Hankook Information System Institute
austiny@snu.ac.kr / austiny@gatech.edu