Android

Integrate Hesabe Payment Gateway into your Android application using Kotlin. Modern encryption, API handling, and WebView integration for seamless payment processing.

Android Integration Steps

You will find the following files in the comprehensive Android Kotlin Kit:

HesabeCrypt.kt

Used for encryption & decryption of Request & Response packets. Use encrypt() function for encrypting the packet and decrypt() for decrypting.

Constants.kt

Contains constants for Base URL, Merchant Code, Access Code, Secret Key & IV (used for Encryption)

MainActivity.kt

Provides guidance on how to invoke the Checkout API to integrate with Hesabe Payment API 2.0 and redirect to Payment URL.

WebViewActivity.kt

Contains the Android WebView which uses webkit engine to display Hesabe Payment page in android activity.

ApiInterface.kt

Use to invoke checkout endpoint of Hesabe API

RetrofitClientInstance.kt

Used to create instance of Retrofit for API communication

Download Kit

Complete Android Kotlin integration kit with examples

Example KitDownload Link
Download Android Kotlin KitClick here