결제

로 vue
@tosspayments/payment-sdk .
.

tossPayments.requestPayment('카드', {
amount: parseInt(price),
// orderId: 'KMyLyhpd7DYTTRHVCDXoS',
orderId: order_id,
customerName: customer_name,
orderName: product_name,
// vat: parseInt(price * 1.1),
successUrl,
failUrl,
})


.

KnownError: . .
Unsafe attempt to initiate navigation for frame with origin 'http://localhost:9000' from frame with URL 'https://api.tosspayments.com/proxy/pages/setup/live_ck_XjExPeJWYVQZlQOXR0vr49R5gvNL/gN60L1adJYyZqmkKeP8gWkvDBdNRDj8bQRxB9lG5DnzWE7pM'. The frame attempting navigation is targeting its top-level window, but is neither same-origin with its target nor has it received a user gesture. See https://www.chromestatus.com/feature/5851021045661696.

Uncaught DOMException: Failed to set the 'href' property on 'Location': The current window does not have permission to navigate the target frame to 'http://localhost:9500/payment/toss_pay_fail?code=PAY_PROCESS_ABORTED&message=%EC%97%85%EC%B2%B4%20%EC%82%AC%EC%A0%95%EC%9C%BC%EB%A1%9C%20%EC%9D%B8%ED%95%B4%20%EA%B2%B0%EC%A0%9C%EB%A5%BC%20%EC%9D%BC%EC%8B%9C%20%EC%A4%91%EC%A7%80%ED%95%98%EC%98%80%EC%8A%B5%EB%8B%88%EB%8B%A4.%20%EC%83%81%EC%A0%90%EC%9C%BC%EB%A1%9C%20%EB%AC%B8%EC%9D%98%ED%95%98%EC%8B%9C%EA%B8%B0%20%EB%B0%94%EB%9E%8D%EB%8B%88%EB%8B%A4.&orderId=ojim0xu5wIS_SXfMH5XwoF'.
at https://api.tosspayments.com/proxy/pages/setup/live_ck_XjExPeJWYVQZlQOXR0vr49R5gvNL/gN60L1adJYyZqmkKeP8gWkvDBdNRDj8bQRxB9lG5DnzWE7pM:47:41
2023-06-09_3.35.54.png
Was this page helpful?