플러터 tosspayments_widget_sdk_flutter 1.0.2 문의
tosspayments_widget_sdk_flutter 1.0.2 플러터 문서를 보고서
@override
void initState() {
super.initState();
getPaymentInfo();
print(dotenv.get('clientKey'));
/// PaymentWidget 객체를 초기화합니다.
_paymentWidget = PaymentWidget(
clientKey: dotenv.get('clientKey'),
customerKey: 'dws921dsjESwnvbwa1=@@PO21cQb',
paymentWidgetOptions:
PaymentWidgetOptions(brandPayOption: BrandPayOption("")));
_paymentWidget
.renderPaymentMethods(
selector: 'methods',
amount: Amount(value: 300, currency: Currency.KRW, country: "KR"))
.then((control) {
_paymentMethodWidgetControl = control;
});
_paymentWidget.renderAgreement(selector: 'agreement').then((control) {
_agreementWidgetControl = control;
});
}
코드를 작성했는데 디버그 콘솔에서 출력되는 내용이 있습니다.
글 작성 길이 때문에 디버그 콘솔에 출력되는 내용은 댓글로 달겠습니다.
8 Replies
⏳ 잠시만 기다려주세요! 곧 답변드리겠습니다
오류 문의일 경우 아래 정보를 미리 전달해주시면, 빠른 답변에 도움이 됩니다.
- 주문번호(orderId) :
- 문의 내용 :
(img를 함께 첨부해주시면 도움이됩니다)
* 계약관련 내용은 1544-7772로 문의주세요.
* 주말/공휴일에는 답변이 늦을 수 있어요.
[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: Exception: AgreementWidget with selector 'agreement' does not exist.
#0 PaymentWidget.renderAgreement.<anonymous closure> (package:tosspayments_widget_sdk_flutter/payment_widget.dart:70:9)
#1 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1297:15)
#2 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1236:9)
#3 SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:1085:5)
#4 _invoke (dart:ui/hooks.dart:170:13)
#5 PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:401:5)
#6 _drawFrame (dart:ui/hooks.dart:140:31)
[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(unregistered_view_type, A UIKitView widget is trying to create a PlatformView with an unregistered type: < com.pichillilorenzo/flutter_inappwebview >, If you are the author of the PlatformView, make sure
registerViewFactory
is invoked.
See: https://docs.flutter.dev/development/platform-integration/platform-views#on-the-platform-side-1 for more details.
If you are not the author of the PlatformView, make sure to call GeneratedPluginRegistrant.register
., null)
#0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:652:7)
#1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:310:18)
<asynchronous suspension>
#2 PlatformViewsService.initUiKitView (package:flutter/src/services/platform_views.dart:242:5)
<asynchronous suspension>
#3 _UiKitViewState._createNewUiKitView (package:flutter/src/widgets/platform_view.dart:662:44)
<asynchronous suspensi<…>
라고 출력됩니다.
추가적으로 설정해야하거나 설치해야하는 부분이 있는건데 안해서 그런걸까요?Hosting native Android views in your Flutter app with Platform Views
Learn how to host native Android views in your Flutter app with Platform Views.
아이폰 가상 디바이스에서 개발 중이고,
해당 코드가 작성되어 있는 화면(위젯)입니다.

음 우선
저희 샘플앱은 실행해보셨을까요?
Dart packages
tosspayments_widget_sdk_flutter | Flutter Package
This SDK helps you easily link the 'toss payments' payment module on the flutter.
installing하면 example폴더에서 sample앱 실행이 가틍합니다.
해결했습니다.
❤️ 기술문의 경험이 어떠셨나요?!
간단히 코멘트 남겨주세요! 제품 발전에 큰 힘이 됩니다.