Android SDK Installation:

  1. Add authToken to gradle.properties

authToken=jp_c34jsq8ncgmv7km89aq1sk2dr5

  1. Add maven to gradle - allprojects - repositories

maven {
url "https://jitpack.io"
credentials { username authToken}
}

If gradle is version 7.0 or above the following code needs to be inserted in settings.gradle:

  1. Add 'MeshulamSDK' dependency to your gradle:

implementation 'com.github.inManage:MeshulamSDK-Android:1.0.2'

In case your project uses volley and you're getting a duplicate class error, use implementation below:

implementation ('com.github.inManage:MeshulamSDK-Android:1.0.2', {
exclude group: "com.android.volley"
})

  1. Sync project

Add MeshulamSDK Initialization code:

  1. Add import MeshulamSDK to your Class.

import il.co.inmanage.meshulam_sdk.sdk.MeshulamSdk;

  1. Meshulam Callbacks.

    Contains the following callbacks :

After setting up an account you will need to receive the followings from us:
userId, pageCode, and an apiKey in case required.
• UserId (required) refers to every business that is connected to Meshulam.
• ApiKey (required) refers to companies that are working with multiple businesses. In this case, you will need to send both the apiKey and the userId for every transaction that you would like to clear.
• PageCode (required) is for your API settings at Meshulam. There might be more than one pageCode, for instance, a pageCode for credit card template only and a pageCode for Bit.
• Sum (required) the amount you want to charge the client with.
• FullName (required) the full name of the user.
• Phone (required) the phone num of the user.
• Email (optional) the email of the user.
• Description (optional) description of the user.

There are 3 functions that extroversion out for the developer.

• CreatePaymentProcess (required) A function to execute the transaction should pass the necessary parameters to finish the transaction.
• SettleSuspendedTransaction (optional if) A transaction approval function should pass the necessary parameters to it.
• CancelBitTransaction (optional if) A transaction cancellation function should pass the necessary parameters to it..

Examples:

• CreatePaymentProcess:
CreatePaymentData Object :

Passed to Create Payment Process Method :

• SettleSuspendedTransaction:
GetPaymentData Object:

Passed to Settle Suspended Transaction Method :

• CancelBitTransaction:
GetPaymentData Object:

Passed to Cancel Bit Payment Method :

• CancelBitTransaction:
GetPaymentData Object:

Passed to Cancel Bit Payment Method :

Add Debug Mode:

  1. In your UIViewController file add debug Mode (debug mode is true by default).

MeshulamSdk.getInstance(this).setDevMode(false);