multi_payment_gateway 0.0.3
multi_payment_gateway: ^0.0.3 copied to clipboard
A Flutter package to simplify integrating multiple payment gateways like Paymob, PayPal, and Stripe.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add multi_payment_gateway
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
multi_payment_gateway: ^0.0.3
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:multi_payment_gateway/billing.dart';
import 'package:multi_payment_gateway/cart_item.dart';
import 'package:multi_payment_gateway/order_item.dart';
import 'package:multi_payment_gateway/payment_model.dart';
import 'package:multi_payment_gateway/services/customer_service.dart';
import 'package:multi_payment_gateway/services/payment_service.dart';
import 'package:multi_payment_gateway/services/paymob_service.dart';
import 'package:multi_payment_gateway/services/paypal_service.dart';
import 'package:multi_payment_gateway/services/stripe_service.dart';
import 'package:multi_payment_gateway/setup_payment.dart';
import 'package:multi_payment_gateway/stripe_payment_kit.dart';
import 'package:multi_payment_gateway/stripe_setup.dart';
import 'package:multi_payment_gateway/transaction.dart';