if ( xpay.TX() ) {
//1)결제결과 화면처리(성공,실패 결과 처리를 하시기 바랍니다.)
out.println("<body onload = \"+ +\">");
out.println("</body>");
out.println( "결제요청이 완료되었습니다. <br>");
out.println( "TX 결제요청 Response_code = " + xpay.m_szResCode + "<br>");
out.println( "TX 결제요청 Response_msg = " + xpay.m_szResMsg + "<p>");
out.println("거래번호 : " + xpay.Response("LGD_TID",0) + "<br>");
out.println("상점아이디 : " + xpay.Response("LGD_MID",0) + "<br>");
out.println("상점주문번호 : " + xpay.Response("LGD_OID",0) + "<br>");
out.println("결제금액 : " + xpay.Response("LGD_AMOUNT",0) + "<br>");
out.println("결과코드 : " + xpay.Response("LGD_RESPCODE",0) + "<br>");
out.println("결과메세지 : " + xpay.Response("LGD_RESPMSG",0) + "<p>");
Map<String , Object> map = new HashMap<String, Object>();
for (int i = 0; i < xpay.ResponseNameCount(); i++)
{
out.println(xpay.ResponseName(i) + " = ");
for (int j = 0; j < xpay.ResponseCount(); j++)
{
out.println("\t" + xpay.Response(xpay.ResponseName(i), j) + "<br>");
map.put(xpay.ResponseName(i), xpay.Response(xpay.ResponseName(i), j));
}
}
out.println(map);
// JSONObject(map);
map 을 jsonObject로 바꿔어서 웹뷰로 반환하고 싶습니다.
setMessage 로 전해주는 방법을 생각하고 있습니다만 , 잘못된 방향으로 가고 있으면 지적해주세요.