Skip to content

Payment Gateway-This is an Android application that demonstrates how to integrate SSLCommerz library for SSL payment integration

Notifications You must be signed in to change notification settings

snehaawate/SSLCommerz-Payment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. Clone the repository or download the source code.

  2. Open the project in Android Studio.

  3. Build the project to resolve any missing dependencies.

  4. Run the application on an emulator or a physical device.

Usage

  1. Open the application on your device.

  2. Enter the payment amount in the provided field.

  3. Click on the "Pay" button.

  4. Follow the payment flow as guided by the SSLCommerz library.

  5. 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.

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.

About

Payment Gateway-This is an Android application that demonstrates how to integrate SSLCommerz library for SSL payment integration

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages