Giter Club home page Giter Club logo

sslcommerz-payment's Introduction

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.

sslcommerz-payment's People

Contributors

snehaawate avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.