Giter Club home page Giter Club logo

shariar99 / android-bkash-payment-gateway Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 836 KB

This is a guide for integrating the Bkash Payment Gateway in an Android app using WebView and HTML/JS as an asset design file. The integration will be done using the Gson library for Gson request handling. Official documentation from bKash Developer Portal and the bKash pgwClient Demo Android repository will be referenced.

Kotlin 83.59% CSS 16.41%
bkash-android bkash-online-payment bkash-payment-gateway bkash-pgw bkash-online android-bkash-payment-gateway bkash-payment-android

android-bkash-payment-gateway's Introduction

Android-Bkash-Payment-Gateway

2023-05-29.19-30-42.online-video-cutter.com.mp4

Bkash Payment Gateway Integration in Android App

This is a guide for integrating the Bkash Payment Gateway in an Android app using WebView and HTML/JS as an asset design file. The integration will be done using the Gson library for Gson request handling. Official documentation from bKash Developer Portal and the bKash pgwClient Demo Android repository will be referenced.

Prerequisites

  • Android Studio
  • Android SDK
  • Kotlin programming knowledge

Getting Started

  1. Clone the bKash payment Demo Android repository to your local machine or download the source code as a ZIP file.

  2. Open Android Studio and import the project by selecting "Open an existing Android Studio project" and navigating to the cloned repository's directory.

  3. Add the Gson library to your project's dependencies. You can do this by adding the following line to your build.gradle file:

    implementation 'com.google.code.gson:gson:2.8.8'

4.Ensure that you have a WebView component in your app's layout file (XML). If not, add the following code to your layout file: Copy the HTML and JS files from the asset directory of the cloned repository to the assets directory of your Android project. Ensure that the filenames and directory structure match exactly.

Update the WebView code in your activity file (Kotlin) to load the HTML file from the assets. 7. Follow the official documentation provided by bKash Developer Portal to understand the available payment integration options and the necessary data to be passed to the payment gateway.

  1. Make the necessary modifications to the HTML and JS files in the assets directory based on your payment integration requirements.

  2. Use Gson library to serialize and deserialize data when communicating between your Android app and the HTML/JS file. You can refer to the Gson library documentation for detailed usage instructions.

  3. Run your Android app on an emulator or a physical device to test the Bkash Payment Gateway integration.

Additional Resources

License

The source code and documentation in this repository are released under the MIT License. Feel free to modify and use it in your own projects.

Disclaimer

This README provides an overview of integrating the Bkash Payment Gateway into an Android app using WebView and HTML/JS as an asset design file. However, for the most up-to-date and detailed instructions, please refer to the official documentation provided by bKash.

android-bkash-payment-gateway's People

Contributors

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