A comprehensive solution for processing payments with Ngenius in your Flutter app.
Ngenius Flutter SDK simplifies the integration of Ngenius payment gateway in Flutter applications by providing seamless support for card payments, 3DS and 3DS2 authentication, and customizable UI components.
- Motivation
- Features
- Getting Started
- Usage
- Configuration
- Additional Information
- License
- Issues and Feedback
- Contributing
- Seamless integration with Ngenius payment gateway
- Support for card payments
- 3DS and 3DS2 authentication support
- Customizable UI components
To use this plugin, add ngenius_sdk
as a dependency in your pubspec.yaml
file.
dependencies:
ngenius_sdk: ^0.0.8
Import the package in your Dart code:
import 'package:ngenius_sdk/ngenius_sdk.dart';
To initiate a payment, use the NgeniusCheckout
widget:
NgeniusCheckout(
apiUrl: 'YOUR_API_URL',
apiKey: 'YOUR_API_KEY',
outletId: 'YOUR_OUTLET_ID',
currency: 'CURRENCY',
amount: 'AMOUNT', // Amount as an integer
onPaymentCreated: () {
// Handle successful payment creation
},
// Optional
onError: () {
// Handle payment errors
},
)
Ensure you have the following permissions set up in your project:
Add the internet permission to your AndroidManifest.xml
:
<uses-permission android:name="android.permission.INTERNET"/>
No additional configuration required for iOS.
- 4012001037141112: 3DS activated
- 4792445612017070: 3DS declined
- 5457210001000019: 3DS2 activated
- 4000000000000002: 3DS2 declined
- Amex is not working
- Proper error message display needs to be built
For more details on using the Ngenius SDK, please refer to the official documentation.
This project is licensed under the MIT License - see the LICENSE file for details.
Please file issues, bugs, or feature requests in our issue tracker.
Contributions are welcome! Please feel free to submit a Pull Request.