GithubHelp home page GithubHelp logo

inai-android-sample-integration's Introduction

inai-android-sample-integration

inai Checkout

Overview

This repository demonstrates how to integrate Inai’s Android Framework into your project.

Features

Headless Checkout

Drop In Checkout

Prerequisites

Minimum Requirements

  • Android Lollipop Api 21
  • Android Studio Chipmunk 2021.2.1
  • Kotlin Android Version 1.6.10

Setup

To start the backend NodeJS server:

  1. Navigate to the ./server folder at the root level.
  2. Run command npm install to install the dependency packages.
  3. Update the following environment variables in the .env file. This can be accessed from inai's merchant dashboard under Settings > Credentials
    • client_username
    • client_password
variables description
client_username client username under Settings > Credentials in dashboard
client_password client password under Settings > Credentials in dashboard
  1. Run command npm start to start the nodejs backend server

To setup the inai sample app for Android, follow the steps below,

  1. git clone https://github.com/inaitech/inai-android-sample-integration
  2. Navigate to /app/build.gradle file and update the following values :
    • Inai Token
    • Base Url // backend api server url eg: http://localhost:5999. If you are using a emulator, please replace localhost with the system IP address.
  3. Navigate to Config.kt file and update the following values :
    • Country
    • Amount // for order creation
    • Currency // for order creation
  4. Click on Run in Android Studio to install the app.

FAQs

Support

Inai ios sdk reference docs available here. If you found a bug or want to suggest a new [feature/use case/sample], please contact customer support.

inai-android-sample-integration's People

Contributors

inai-chinmay-flexiple avatar inai-dinesh avatar inai-venthan 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.