aba_payment 0.0.4 copy "aba_payment: ^0.0.4" to clipboard
aba_payment: ^0.0.4 copied to clipboard

Allow you to integrate your flutter app with ABA PayWay

example/lib/main.dart

import 'package:aba_payment/aba_payment.dart';
import 'package:aba_payment/services/services.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'screens/cart_screen.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';

import 'screens/test_screen.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  await dotenv.load(fileName: ".env");
  PaywayTransactionService.ensureInitialized(ABAMerchant(
    merchantID: dotenv.get('ABA_PAYWAY_MERCHANT_ID'),
    merchantApiName: dotenv.get('ABA_PAYWAY_MERCHANT_NAME'),
    merchantApiKey: dotenv.get('ABA_PAYWAY_API_KEY'),
    baseApiUrl: dotenv.get('ABA_PAYWAY_API_URL'),
    refererDomain: "https://mylekha.app",
  ));
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: "ABA Payment Testing",
      debugShowCheckedModeBanner: false,
      initialRoute: "/",
      themeMode: ThemeMode.dark,
      darkTheme: ThemeData.dark(),
      routes: {
        "/": (_) => TestScreen(),
      },
      builder: EasyLoading.init(),
    );
  }
}
11
likes
60
points
55
downloads

Publisher

verified publishermylekha.app

Weekly Downloads

Allow you to integrate your flutter app with ABA PayWay

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

crypto, dio, easy_logger, flutter, flutter_dotenv, flutter_inappwebview, fluttertoast, intl, url_launcher

More

Packages that depend on aba_payment