2023-05-28.14-50-58.online-video-cutter.com.mp4
SSLCommerz-Payment-in-Android-Kotlin
SSL Payment Example
This is an Android application that demonstrates how to integrate SSLCommerz library for SSL payment integration.
Prerequisites
- Android Studio
- Android SDK
- SSLCommerz library (add the necessary dependencies to your project)
Getting Started
-
Clone the repository or download the source code.
git clone https://github.com/shariar99/SSLCommerz-Payment-in-Android-JAVA.git
-
Open the project in Android Studio.
-
Build the project to resolve any missing dependencies.
-
Run the application on an emulator or a physical device.
Usage
-
Open the application on your device.
-
Enter the payment amount in the provided field.
-
Click on the "Pay" button.
-
Follow the payment flow as guided by the SSLCommerz library.
-
Once the transaction is completed, you will receive a success or failure message.
Configuration
To configure the SSLCommerz integration, you need to modify the following code in MainActivity.kt
:
sslCommerzInitialization = new SSLCommerzInitialization(
"your-sslcommerz-store-id",
"your-sslcommerz-store-password",
Double.parseDouble(amount),
SSLCCurrencyType.BDT,
amount,
"eshop",
SSLCSdkType.TESTBOX
);
Replace "your-sslcommerz-store-id" and "your-sslcommerz-store-password" with your own store ID and password provided by SSLCommerz.
License
MIT License
Feel free to use this code as a reference for integrating SSLCommerz library into your own Android projects. Modify and extend it as per your requirements.
Acknowledgements SSLCommerz - The library used for SSL payment integration.
Author Shariar
Please replace "your-sslcommerz-store-id"
and "your-sslcommerz-store-password"
in the MainActivity.kt
code with your actual store ID and password provided by SSLCommerz.