Project Requirements
To integrate the Spotflow Android SDK into your project, ensure the following prerequisites are met:- Android Studio 4.1 or later
- Android SDK API level 21 or higher while the minimum supported SDK version is 15
- Android Gradle Plugin 7.2 and above
- Gradle 7.1.3 and above
- AndroidX
Installation
- Add the Spotflow SDK dependency to your app-level
build.gradlefile:
- Add the Internet permission to your AndroidManifest.xml file:
- Sync your project with Gradle files to download the SDK into your project. Upon installation, you gain access to the UI components and methods to accept seamless payment experiences in your Android app.
Parameters Required by the Library
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 with Jetpack Compose
If you’re using Jetpack Compose, call thePaymentUI composable function with the required parameters.

