Feexpay

FeexPay is a secure plugin to accept Mobile Money and Credit Card payments..

Installation

Use this command.

With Flutter

flutter pub add feexpay_flutter

With Dart

flutter pub add feexpay_flutter

## Import it

Now in your Dart code, you can use:

import 'package:feexpay_flutter/feexpay_flutter.dart';

Usage

MaterialButton(
  child: Text('Payer $amount'),
    color: Color(0xFF112C56),
    textColor: Colors.white,
    shape: RoundedRectangleBorder(
    borderRadius: BorderRadius.circular(10.0),),
    onPressed: () => {
    Navigator.push(
    context,
    MaterialPageRoute(builder: (context) => ChoicePage(
      token: 'api_key',
      id: 'shop id',
      amount: amount,
      redirecturl: '/success' (The page to which the customer should be redirected after successful payment),
      errorredirecturl: '/error' (The page to which the customer should be redirected after failed payment),
      trans_key: 'random string 15 characters to identify a transaction in merchant system',
    )),
    )
    }
),

Declaration of redirect URLs

Valid routes are added using the following syntax: redirecturl: “/success”, errorredirecturl: “/error” after creating the widget for these different routes. Declare the routes in the app entry point that integrates the SDK into MaterialApp and associate them with its widgets. Here is an example.

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'FeexPay SDK Demo',
      theme: ThemeData(
        fontFamily: 'Poppins',
        // colorScheme: ColorScheme.fromSeed(seedColor: const Color(0xFFD45D00)),
      ),
      home: const MyHomePage(title: 'Démo SDK FeexPay'),
      debugShowCheckedModeBanner: false,
      routes: {
        '/success': (context) => const SuccessPage(),
        '/error': (context) => const EndErrorPage(),
      },
    );
  }
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

GNU Affero

Features

Getting started

Usage

Additional information