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
Features
Getting started
Usage
Additional information
Libraries
- feexpay_flutter
- feexpay_flutter_sdk
- utils/coris_payforit
- utils/get_fee
- utils/mobile_payforit
- utils/payforit_status
- utils/snackbar_helper
- utils/wave_payforit
- widgets/card_form
- widgets/custom_loader
- widgets/fees_notice
- widgets/form_heading
- widgets/merchant_card_info
- widgets/mobile_form
- widgets/otp_dialog
- widgets/overview
- widgets/payment_maintenance_card
- widgets/payment_method_card
- widgets/personals_infos_form
- widgets/qr_iframe
- widgets/security_notice
- widgets/wallet_form