smat_pay_payment_plugin 1.0.3
smat_pay_payment_plugin: ^1.0.3 copied to clipboard
A payment plugin form for Smatpay users.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add smat_pay_payment_pluginWith Flutter:
$ flutter pub add smat_pay_payment_pluginThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
smat_pay_payment_plugin: ^1.0.3Alternatively, 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:smat_pay_payment_plugin/app/app.dart';
import 'package:smat_pay_payment_plugin/app/app.locator.dart';
import 'package:smat_pay_payment_plugin/app/app.logger.dart';
import 'package:smat_pay_payment_plugin/app/app.router.dart';
import 'package:smat_pay_payment_plugin/common/api_config.dart';
import 'package:smat_pay_payment_plugin/common/build_text_field.dart';
import 'package:smat_pay_payment_plugin/common/custom_app_bar.dart';
import 'package:smat_pay_payment_plugin/common/validators.dart';
import 'package:smat_pay_payment_plugin/models/payment_model.dart';
import 'package:smat_pay_payment_plugin/models/payment_model.freezed.dart';
import 'package:smat_pay_payment_plugin/models/payment_model.g.dart';
import 'package:smat_pay_payment_plugin/services/payment_service.dart';
import 'package:smat_pay_payment_plugin/smatpay_payment_plugin.dart';
import 'package:smat_pay_payment_plugin/util/crypto_util.dart';
import 'package:smat_pay_payment_plugin/util/models/request/encrypt_card_request.dart';
import 'package:smat_pay_payment_plugin/util/models/request/encrypt_card_request.freezed.dart';
import 'package:smat_pay_payment_plugin/util/models/request/encrypt_card_request.g.dart';
import 'package:smat_pay_payment_plugin/util/models/request/track_payment_request.dart';
import 'package:smat_pay_payment_plugin/util/models/request/track_payment_request.freezed.dart';
import 'package:smat_pay_payment_plugin/util/models/request/track_payment_request.g.dart';
import 'package:smat_pay_payment_plugin/util/models/response/generic_response.dart';
import 'package:smat_pay_payment_plugin/util/models/response/generic_response.freezed.dart';
import 'package:smat_pay_payment_plugin/util/models/response/generic_response.g.dart';
import 'package:smat_pay_payment_plugin/util/models/response/track_payment_response.dart';
import 'package:smat_pay_payment_plugin/util/models/response/track_payment_response.freezed.dart';
import 'package:smat_pay_payment_plugin/util/models/response/track_payment_response.g.dart';
import 'package:smat_pay_payment_plugin/util/models/response/transaction_info_response.dart';
import 'package:smat_pay_payment_plugin/util/models/response/transaction_info_response.freezed.dart';
import 'package:smat_pay_payment_plugin/util/models/response/transaction_info_response.g.dart';
import 'package:smat_pay_payment_plugin/util/shared_service.dart';
import 'package:smat_pay_payment_plugin/view_models/payment_viewmodel.dart';
import 'package:smat_pay_payment_plugin/views/payment_failed.dart';
import 'package:smat_pay_payment_plugin/views/payment_form.dart';
import 'package:smat_pay_payment_plugin/views/payment_form.form.dart';
import 'package:smat_pay_payment_plugin/views/payment_success.dart';
import 'package:smat_pay_payment_plugin/widgets/payment_button.dart';
import 'package:smat_pay_payment_plugin/widgets/track_button.dart';