AndroidManifest.xmlRequirements
Ensure your Flutter environment meets the following:- context: Flutter 3.7.0 or later
- context: Dart 2.19 or later
- context: Compatible with Android (minSdkVersion 21) and iOS (iOS 11+)
- context: Internet permission for Android
AndroidManifest.xml
Installation
To use theSpotflow Flutter SDK package, add the following dependencies to your pubspec.yaml file:
flutter pub get to fetch the package.
Parameters Required by the SDK
planId | The plan ID (optional). |
|---|---|
currency | Currency for the payment (e.g., “NGN”). |
amount | Amount to be paid (nullable). |
key | The API key for authenticating the transaction. |
encryptionKey | This key is used to encrypt the card for secure transactions. |
customerEmail | The email address of the customer. |
customerName | The name of the customer (optional). |
customerPhoneNumber | The phone number of the customer (optional). |
customerId | The unique identifier for the customer (optional). |
paymentDescription | Description of the payment (optional). |
appLogo | App logo widget (optional). |
appName | The name of the app (optional). |
debugMode | Enable or disable debug mode. |
Usage Example
Here is an example of how to make a payment using theSpotflow package:
Testing Your implementation
Test cards can be found hereRunning the Example Project
An example project has been provided on our Github Repository. Clone the repository and navigate to the example folder. Open it with a supported IDE or runflutter run from the terminal in that folder.
