monnify_flutter 0.0.1 monnify_flutter: ^0.0.1 copied to clipboard
Flutter plugin for Monnify services. It supports the android and iOS platforms and it is easy to use. It's used for making payment.
monnify_flutter #
Flutter plugin for Android and iOS Monnify payment gateway
Getting Started #
This project is all about Monnify payment. It supports both Android and iOS platforms.
👨💻
Installation #
To use this plugin for payment, add monnify_flutter
as a
dependency to your pubspec.yaml file
You can then initialise the plugin preferably in the initState
method.
import 'package:monnify_flutter/monnify_flutter.dart';
class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
final monnify = MonnifyFlutter.instance;
@override
void initState() {
super.initState();
monnify.initializeMonnify(
///Enter your API key here from monnify
apiKey: Hidden.API_KEY,
///Enter your contract code here from monnify
contractCode: Hidden.CONTRACT_CODE,
applicationMode: ApplicationMode.test);
}
}
🥳
Make Payment #
You can add this plugin to your flutter application here, a specialized package that includes platform-specific implementation code for Android and/or iOS.