결제위젯 연동 관련 문의 (키인결제)


paymentWidget.requestPayment({
orderId: document.getElementById("orderId").value, // 문 ID
orderName: document.getElementById("itemNm").value, //
successUrl: window.location.origin+"/app/sd/od/success.jsp", //
failUrl: window.location.origin+"/app/sd/od/fail.jsp", //
customerEmail: "",
customerName: document.getElementById("custNm").value
});
, .

1. Unsafe attempt to initiate navigation for frame with origin ' ' from frame with URL ' 'https://api.tosspayments.com/proxy/pages/setup/test_ck_mnRQoOaPz8LeQ0nEbxN3y47BMw6v/jPR7DvYpNk6bJXmgo28eDpoymKDkJWrLAnGKWx4qMl91aEwB?x-tosspayments-global-trace-id=a231019uGrc3V1PkC48IgQQpViOgmVEiv3eIIYm' . The frame attempting navigation is neither same-origin with the target, nor is it the target's parent or opener.
2. Uncaught DOMException: Failed to set the 'href' property on 'Location': The current window does not have permission to navigate the target frame to ' http://주소/success.jsp?paymentType=KEYIN&orderId=202301011234&paymentKey=k2WNa0EMg4Gv6LjeKD8a1vgEO4Mje8wYxAdXy19qpobJmB7P&amount=1'
총 2.

POSTMAN서 2.
image.png
image.png
Was this page helpful?