ngenius_sdk 0.0.9 copy "ngenius_sdk: ^0.0.9" to clipboard
ngenius_sdk: ^0.0.9 copied to clipboard

A Flutter plugin for processing payments with Ngenius.

Ngenius Flutter SDK #

Processing payments with Ngenius in your flutter app.

Features #

  • Seamless integration with Ngenius payment gateway
  • Support for card payments
  • 3DS and 3DS2 authentication support
  • Customizable UI components

Getting Started #

To use this plugin, add ngenius_sdk as a dependency in your pubspec.yaml file.

dependencies:
  ngenius_sdk: ^0.0.8

Usage #

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
  },
)

Configuration #

Ensure you have the following permissions set up in your project:

Android #

Add the internet permission to your AndroidManifest.xml:

<uses-permission android:name="android.permission.INTERNET"/>

iOS #

No additional configuration required for iOS.

Test Cards
  • 4012001037141112: 3DS activated
  • 4792445612017070: 3DS declined
  • 5457210001000019: 3DS2 activated
  • 4000000000000002: 3DS2 declined
Known Issues
  • Amex is not working
  • Proper error message display needs to be built

Additional Information #

For more details on using the Ngenius SDK, please refer to the official documentation.

License #

This project is licensed under the MIT License - see the LICENSE file for details.

Issues and Feedback #

Please file issues, bugs, or feature requests in our issue tracker.

Contributing #

Contributions are welcome! Please feel free to submit a Pull Request.

5
likes
0
points
6
downloads

Publisher

verified publisherameerrizvi.online

Weekly Downloads

A Flutter plugin for processing payments with Ngenius.

Homepage

License

unknown (license)

Dependencies

dio, flutter, flutter_inappwebview, json_annotation, plugin_platform_interface, text_form_field_wrapper

More

Packages that depend on ngenius_sdk