Merge branch 'master' into 5175_마이페이지_및_결제
This commit is contained in:
commit
ebeddf452a
@ -42,6 +42,7 @@ import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.Model;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.util.LinkedMultiValueMap;
|
||||
import org.springframework.util.MultiValueMap;
|
||||
@ -3501,5 +3502,40 @@ public class TestController {
|
||||
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping("/uss/ion/test/callNicepay.do")
|
||||
public String callNicepay(Model model) {
|
||||
String url = "https://dev.nicepay.co.kr/webapi/sslConnectionTest.jsp";
|
||||
String mid = "itn180208m"; // 실제 MID 값으로 변경
|
||||
|
||||
try {
|
||||
// RestTemplate 사용
|
||||
RestTemplate restTemplate = new RestTemplate();
|
||||
|
||||
// 헤더 설정
|
||||
HttpHeaders headers = new HttpHeaders();
|
||||
headers.setContentType(MediaType.APPLICATION_FORM_URLENCODED);
|
||||
|
||||
// 파라미터 설정
|
||||
MultiValueMap<String, String> params = new LinkedMultiValueMap<>();
|
||||
params.add("MID", mid);
|
||||
|
||||
HttpEntity<MultiValueMap<String, String>> request = new HttpEntity<>(params, headers);
|
||||
|
||||
// POST 요청
|
||||
ResponseEntity<String> response = restTemplate.postForEntity(url, request, String.class);
|
||||
|
||||
// JSP에 전달
|
||||
model.addAttribute("result", response.getBody());
|
||||
model.addAttribute("url", url);
|
||||
model.addAttribute("mid", mid);
|
||||
|
||||
} catch (Exception e) {
|
||||
model.addAttribute("result", "에러 발생: " + e.getMessage());
|
||||
}
|
||||
|
||||
return "uss/ion/test/TestNicePaySSL"; // nicepayResult.jsp로 이동
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
57
src/main/webapp/WEB-INF/jsp/uss/ion/test/TestNicePaySSL.jsp
Normal file
57
src/main/webapp/WEB-INF/jsp/uss/ion/test/TestNicePaySSL.jsp
Normal file
@ -0,0 +1,57 @@
|
||||
<%@ page contentType="text/html; charset=utf-8"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
|
||||
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
|
||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||
|
||||
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<title>세금계산서 관리</title>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
</head>
|
||||
<body>
|
||||
<div class="contWrap">
|
||||
<div class="pageTitle">
|
||||
<div class="pageIcon"><img src="/pb/img/pageTitIcon4.png" alt=""></div>
|
||||
<h2 class="titType1 c_222222 fwBold">Nicepay SSL 호출 결과</h2>
|
||||
<p class="tType6 c_999999">Nicepay SSL 호출 결과</p>
|
||||
</div>
|
||||
<div class="pageCont">
|
||||
<!-- 세금계산서 -->
|
||||
<div class="tableWrap">
|
||||
<table class="tbType1">
|
||||
<colgroup>
|
||||
<col style="width: 40%">
|
||||
<col style="width: 20%">
|
||||
<col style="width: 40%">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>url</th>
|
||||
<th>mid</th>
|
||||
<th>결과</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
${url}
|
||||
</td>
|
||||
<td>
|
||||
${mid}
|
||||
</td>
|
||||
<td>
|
||||
${result}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="btnWrap">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@ -133,7 +133,7 @@ caption, .label {position: absolute;width: 1px;height: 1px;margin: -1px;border:
|
||||
.login2 .check_money .hover_content_wrap{display:inline-block;position:relative;}
|
||||
.login2 .check_money .hover_content_wrap .qmMark{width:17px;height:17px;margin:0 4px 0 0;background:#6a6c72;border-radius:100%;color:#fff;text-align:center;}
|
||||
.login2 .check_money .hover_content_wrap .qmMark:hover+.hover_content{display:block;}
|
||||
.login2 .check_money .hover_content{display:none;position:absolute;padding:12px 10px 8px 10px;border:2px solid #002c9a;background:#fff;box-shadow: 0 3px 10px 0 rgba(0,0,0,0.5);transform:translateX(-50%);border-radius:5px;top:34px;left:8px;}
|
||||
.login2 .check_money .hover_content{display:none;position:absolute;padding:12px 12px 8px 12px;border:2px solid #002c9a;background:#fff;box-shadow: 0 3px 10px 0 rgba(0,0,0,0.5);transform:translateX(-50%);border-radius:5px;top:34px;left:8px;}
|
||||
.login2 .check_money .hover_content::after{content:'';position:absolute;left:50%;top:-10px;width:16px;height:10px;margin:0 0 0 -8px;background:url(../images/content/icon_account_arrow.png) no-repeat left top;}
|
||||
.login2 .check_money .hover_content .hover_content_title{font-size:14px;font-weight:600;margin:0 0 10px 0;}
|
||||
.login2 .check_money .hover_content .hover_content_title span{padding:0;font-size:13px;font-weight:400;}
|
||||
@ -142,7 +142,9 @@ caption, .label {position: absolute;width: 1px;height: 1px;margin: -1px;border:
|
||||
.login2 .check_money .hover_content .send_available_number li{display:flex;justify-content:space-between;font-size:13px;}
|
||||
.login2 .check_money .hover_content .title{min-width:70px;}
|
||||
.login2 .check_money .hover_content .number{text-align:right;padding:0;}
|
||||
.login2 .check_money .hover_content .event_term{width:100%;padding:2px 0;margin:8px 0 0 0;background:#e5e5e5;font-size:13px;color:#444;text-align:center;border-radius:25px;}
|
||||
.login2 .check_money .hover_content .event_term{display:flex;width:100%;padding:4px 5px 4px 7px;margin:8px 0 0 0;background:#FFE5E5;font-size:13px;color:#e40000;text-align:center;border-radius:25px;justify-content:space-between;box-sizing:border-box;}
|
||||
.login2 .check_money .hover_content .event_term p:last-child{color:#222;}
|
||||
.login2 .check_money .hover_content .event_term p:last-child span{color:#e40000;}
|
||||
|
||||
/*후불 회원에게만 노출되는 안내레이어*/
|
||||
.login2 .check_money .holdingsum_box {position: relative; display:flex; align-items: center;}
|
||||
|
||||
@ -370,7 +370,7 @@
|
||||
<p class="number"><span class="c_002c9a fwBold">58</span>원(345매)</p>
|
||||
</li>
|
||||
</ul>
|
||||
<p class="event_term">이벤트 적용중 <span class="fwBold">D-60</span></p>
|
||||
<div class="event_term"><p>이벤트<span class="fwBold">(D-60)</span></p><p><span class="fwBold price">500,000.99</span>원</p></div>
|
||||
</div>
|
||||
</div>
|
||||
<span class="fwMd" id="hdUserMoney">999,999,999.99</span>원
|
||||
|
||||
Loading…
Reference in New Issue
Block a user