moru_payment_gateway 0.1.8 moru_payment_gateway: ^0.1.8 copied to clipboard
A new Flutter project.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add moru_payment_gateway
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
moru_payment_gateway: ^0.1.8
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:moru_payment_gateway/constants.dart';
import 'package:moru_payment_gateway/dto/request/access_validate.dart';
import 'package:moru_payment_gateway/dto/request/pay_data.dart';
import 'package:moru_payment_gateway/dto/request/user_validate.dart';
import 'package:moru_payment_gateway/dto/response/validated_access_res.dart';
import 'package:moru_payment_gateway/dto/response/validated_user_res.dart';
import 'package:moru_payment_gateway/exception/payment_exception.dart';
import 'package:moru_payment_gateway/main.dart';
import 'package:moru_payment_gateway/presentation/bloc/access_validator/validate_access_key_cubit.dart';
import 'package:moru_payment_gateway/presentation/bloc/access_validator/validate_access_key_state.dart';
import 'package:moru_payment_gateway/presentation/bloc/pay/initiate_pay_cubit.dart';
import 'package:moru_payment_gateway/presentation/bloc/pay/initiate_pay_state.dart';
import 'package:moru_payment_gateway/presentation/bloc/user_validator/user_validator_cubit.dart';
import 'package:moru_payment_gateway/presentation/bloc/user_validator/user_validator_state.dart';
import 'package:moru_payment_gateway/presentation/widgets/moru_payment_card.dart';
import 'package:moru_payment_gateway/repository/payment_contracts.dart';
import 'package:moru_payment_gateway/repository/payment_handler.dart';
import 'package:moru_payment_gateway/repository/payment_impl.dart';