feexpay_flutter 1.0.12 copy "feexpay_flutter: ^1.0.12" to clipboard
feexpay_flutter: ^1.0.12 copied to clipboard

A secure plugin to accept Mobile Money and Credit Card payments.

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 #

2
likes
130
points
85
downloads

Publisher

unverified uploader

Weekly Downloads

A secure plugin to accept Mobile Money and Credit Card payments.

Homepage

Documentation

API reference

License

AGPL-3.0 (license)

Dependencies

awesome_dialog, country_picker, flutter, flutter_highlight, flutter_otp_text_field, http, url_launcher, webview_flutter

More

Packages that depend on feexpay_flutter