Giter Site home page Giter Site logo

bongloy-android's Introduction

Bongloy Android SDK

The Bongloy Android SDK makes it quick and easy to build an excellent payment experience in your Android app.

Installation

Android Studio (or Gradle)

No need to clone the repository or download any files -- just add this line to your app's build.gradle inside the dependencies section:

Bongloy

implementation 'com.stripe:stripe-android:8.1.0'

implementation 'com.github.khomsovon:bongloy-android:1.0.3'

And add it in your root build.gradle at the end of repositories:

allprojects {
  repositories {
    ...
    maven { url 'https://jitpack.io' }
  }
}

Usage

Using setDefaultPublishableKey

A publishable key is required to identify your website when communicating with Bongloy. Remember to replace the test key with your live key in production.

You can get all your keys from your account page.

new Bongloy(context).setDefaultPublishableKey("YOUR_PUBLISHABLE_KEY");

Using createToken

new Bongloy(context).createToken(
    new Card("6200000000000005", 01, 2020, "123"),
    "YOUR_PUBLISHABLE_KEY"
    tokenCallback
);

Official Documentation

Documentation for Bongloy can be found on the Bongloy website.

bongloy-android's People

Contributors

khomsovon avatar

Watchers

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