tosspayments_widget_sdk_flutter 0.1.12-beta.3 tosspayments_widget_sdk_flutter: ^0.1.12-beta.3 copied to clipboard
This SDK helps you easily link the 'toss payments' payment module on the flutter.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add tosspayments_widget_sdk_flutter
With Flutter:
$ flutter pub add tosspayments_widget_sdk_flutter
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
tosspayments_widget_sdk_flutter: ^0.1.12-beta.3
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:tosspayments_widget_sdk_flutter/listener/payment_callback_listener.dart';
import 'package:tosspayments_widget_sdk_flutter/model/agreement_status.dart';
import 'package:tosspayments_widget_sdk_flutter/model/paymentData.dart';
import 'package:tosspayments_widget_sdk_flutter/model/paymentData.g.dart';
import 'package:tosspayments_widget_sdk_flutter/model/payment_info.dart';
import 'package:tosspayments_widget_sdk_flutter/model/payment_widget_options.dart';
import 'package:tosspayments_widget_sdk_flutter/model/selected_payment_method.dart';
import 'package:tosspayments_widget_sdk_flutter/model/tosspayments_result.dart';
import 'package:tosspayments_widget_sdk_flutter/model/tosspayments_url.dart';
import 'package:tosspayments_widget_sdk_flutter/pages/payment_request_page.dart';
import 'package:tosspayments_widget_sdk_flutter/pages/tosspayments_sdk_flutter.dart';
import 'package:tosspayments_widget_sdk_flutter/payment_widget.dart';
import 'package:tosspayments_widget_sdk_flutter/utils/event_waiter.dart';
import 'package:tosspayments_widget_sdk_flutter/utils/navigate.dart';
import 'package:tosspayments_widget_sdk_flutter/utils/nested_vertical_gesture_recognizer.dart';
import 'package:tosspayments_widget_sdk_flutter/utils/phase.dart';
import 'package:tosspayments_widget_sdk_flutter/utils/version.dart';
import 'package:tosspayments_widget_sdk_flutter/webview/javascript_channel.dart';
import 'package:tosspayments_widget_sdk_flutter/webview/payment_window_in_app_webview.dart';
import 'package:tosspayments_widget_sdk_flutter/webview/payment_window_webview.dart';
import 'package:tosspayments_widget_sdk_flutter/widgets/agreement.dart';
import 'package:tosspayments_widget_sdk_flutter/widgets/payment_method.dart';
import 'package:tosspayments_widget_sdk_flutter/widgets/widget_container.dart';