inaitech / inai-android-sample-integration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

License:MIT License


Languages

Language:Kotlin 98.2%Language:JavaScript 1.8%