flutter web에서 결제위젯 연동 문의
안녕하세요 Flutter web에서 아래 문서 참고하여 결제위젯 연동 중에 있습니다.
https://docs.tosspayments.com/guides/v2/payment-widget/integration
flutter_inappwebview package를 사용하여 결제위젯을 띄우는 것 까지는 성공했으나,
결제를 시도하려고 하면 아래처럼 에러가 발생합니다.
successUrl쪽에서 문제가 발생하는 것 같은데, 원인이 무엇인지 모르겠어서 도움을 받을 수 있을까요?
Uncaught (in promise) SecurityError: Failed to set a named property 'href' on 'Location': The current window does not have permission to navigate the target frame to 'http://localhost:8000/assets/pay/success.html?paymentType=NORMAL&orderId=...&paymentKey=...&amount=...'.
구현은 아래처럼 했습니다
project에 pay.html 파일을 생성하여, inappwebview에서 pay.html을 띄워줌 (ex, http://localhost:8000/assets/pay/pay.html)
같은 경로에 success.html 파일을 생성하여, successUrl에 입력 (ex, successUrl: window.location.origin + "/assets/pay/success.html")
localhost가 문제일까봐 배포 후 도메인을 입력해도 같은 에러가 발생합니다
https://docs.tosspayments.com/guides/v2/payment-widget/integration
flutter_inappwebview package를 사용하여 결제위젯을 띄우는 것 까지는 성공했으나,
결제를 시도하려고 하면 아래처럼 에러가 발생합니다.
successUrl쪽에서 문제가 발생하는 것 같은데, 원인이 무엇인지 모르겠어서 도움을 받을 수 있을까요?
Uncaught (in promise) SecurityError: Failed to set a named property 'href' on 'Location': The current window does not have permission to navigate the target frame to 'http://localhost:8000/assets/pay/success.html?paymentType=NORMAL&orderId=...&paymentKey=...&amount=...'.
구현은 아래처럼 했습니다
project에 pay.html 파일을 생성하여, inappwebview에서 pay.html을 띄워줌 (ex, http://localhost:8000/assets/pay/pay.html)
같은 경로에 success.html 파일을 생성하여, successUrl에 입력 (ex, successUrl: window.location.origin + "/assets/pay/success.html")
localhost가 문제일까봐 배포 후 도메인을 입력해도 같은 에러가 발생합니다
