최유빈
TPToss payments 개발자 커뮤니티
•Created by 최유빈 on 6/5/2025 in #❓┃연동개발-문의
Flutter 결제 위젯이 렌더링 안되는 오류
tosspayments_widget_sdk_flutter: ^2.1.1 를 이용해서 결제 위젯을 개발 중입니다.
client key는 테스트 키를 이용하고 있습니다.
PaymentWidget 설정 후 renderPaymentMethods와 renderAgreement 요청으로 렌더링 요청하여 결제 위젯이 잘 렌더링이 됩니다.
다만 특정 상황 이후에 동일하게 렌더링을 진행하려고 하는데 아래와 같은 오류가 발생합니다.
[IOSInAppWebViewController] (iOS) WebView ID 11 calling "onConsoleMessage" using {messageLevel: 3, message: ReferenceError: Can't find variable: PaymentWidget}
[IOSInAppWebViewController] (iOS) WebView ID 12 calling "onReceivedServerTrustAuthRequest" using {protectionSpace: {protocol: https, sslError: {message: Indicates the evaluation succeeded and the certificate is implicitly trusted, but user intent was not explicitly specified., code: 4}, port: 443, sslCertificate: {validNotBeforeDate: null, validNotAfterDate: null, x509Certificate: [48, 130, 5, 226, 48, 130, 4, 202, 160, 3, 2, 1, 2, 2, 16, 13, 222, 234, 140, 162, 48, 36, 143, 100, 45, 9, 10, 64, 227, 20, 55, 48, 13, 6, 9, 42, 134, 72, 134, 247, 13, 1, 1, 11, 5, 0, 48, 60, 49, 11, 48, 9, 6, 3, 85, 4, 6, 19, 2, 85, 83, 49, 15, 48, 13, 6, 3, 85, 4, 10, 19, 6, 65, 109, 97, 122, 111, 110, 49, 28, 48, 26, 6, 3, 85, 4, 3, 19, 19, 65, 109, 97, 122, 111, 110, 32, 82, 83, 65, 32, 50, 48, 52, 56, 32, 77, 48, 52, 48, 30, 23, 13, 50, 53, 48, 52, 49, 55, 48, 48, 48, 48, 48, 48, 90, 23, 13, 50, 54, 48, 53, 49, 54, 50, 51, 53, 57, 53, 57, 90, 48, 29, 49, 27, 48, 25, 6, 3, 85, 4, 3, 12, 18, 42, 46, 116, 111, 115, 115, 112, 97, 121...
48 replies