Step1: How to call SDK?

Notes: 

  • The Login Id, ApiUserName, ClientID, ClientSecret, PassKey and Encryption key will be provided by iServeU which contains the user id and password details, please check the below example of the ClientID and ClientSecret.
  • skipReceipt field default value is false. If user wants to customize the transaction status page then the value should be true.
  • Please ensure the Client ID and Client Secret keys are not to be stored locally within the application. The same is only to be stored on the server side.
  • Client Transaction ID (ClientRefID) max length should be 18 digits and data type to be set as string.

Example: 

Client_id - 42Zuw71Ok7e2TGAgHPKttM7PFGMspJLLy3ewq15dhgjtGM9l
Client_secret - MDB9krmA8OqYdgjTKflkXXU7BTNAJgVDEWBmhWjQ8YBvAPNKNPLbxnJGSKcKiEV9
Pass_key: NNK7BD3GVEEQSFC3AYJW544MFQT2F33DS7OG4NJHWCFOFTG2HCKA

For MOREFUN users, the device type should be

dataModel.setDevice_name = “morefun”

For PAX users, the device type should be

dataModel.setDevice_name = "pax"

For WISEASY users, the device type should be

dataModel.setDevice_name = "Wiseasy

 

Sample App View


Sample App View of pos sdk app
  • Select POS as the type of transaction.
  • Select the appropriate Device needed for the transaction.
  • Fill in the details correctly.
  • Select Skip Receipt if you want to bypass the Receipt generation step.
  • Finally, click on POS button to proceed.
pos-onboarding

To be able to perform a POS transaction, the merchant must be Onboarded.

  • On the POS Onboarding page fill in all the necessary details (mandatory fields are marked with an * ).
  • Click on Proceed to go forward with the Onboarding process. 
initiate
  • Initiate POS transaction.
  • Sale@POS is initiated.
  • Fill in the Customer Mobile Number and enter the Amount of the transaction.
  • Click on Submit to proceed with the transaction or click Cancel to abort

NOTE:

  1. For Sale@POS the amount (should be greater than equal to 100 and less than equal to 100000) and the mobile number has to be filled in to proceed with the transaction.
  2. The devices (MP-63, D-180, etc.) should be paired to the phone using Bluetooth. Below is a representation of the pairing process.

 

pos-connect

For PAX Devices:

  • The available devices will be displayed that can be connected via Bluetooth.
  • The Device IDs are displayed (as highlighted inthe image) and clicking on it will get them
    connected and ready for transaction. 

 

For MoreFun Devices:

  • Search for the device.
  • Click on IS CONNECT or DISCONNECT accordingly to connect or abort the connection respectively.
  • Device Connected shows the device that is connected and can be used for performing the transaction.

Step2: Required Parameters to be sent to the SDK

Name Parameter Name Description Valid Values (Type) and Validation Mandatory /Optional
Transaction Amount transactionAmount Transaction amount for cash withdrawal Numeric. A minimum of 100 and a maximum of 10000. Mandatory
Transaction Type transactionType Type of transaction to be performed. String Mandatory
Shop Name shop_name To be used as per client requirement. Alphanumeric String Optional
Brand Name brand_name To be used as per client requirement. Alphanumeric String Optional
Application Type applicationType Application Category String Mandatory
Param B paramB To be used by the client as per requirement Alphanumeric String. Maximum length is 20. Optional
Param C paramC To be used by the client as per requirement Alphanumeric String. Maximum length is 20. Not Mandatory
Device Type device_type Terminal brand name String Mandatory
Device Name device_name Terminal Model Number String Optional
API User Name apiUserName API User's name String Mandatory
Client Reference ID ClientRefID Reference ID of the Client. Alphanumeric String. Maximum length is 18. Mandatory
HeaderSecrets headerSecrets Will be generated by using client id and client secret provided by iServeU Alphanumeric String Mandatory
PassKey passKey Will be shared by iServeU Alphanumeric String Mandatory
Login ID loginID User application login ID or username Alphanumeric String Mandatory
Skip Receipt skipReceipt If client wants to skip the receipt downloading part. Boolean.
Default value is false.
Set true to skip receipt download.
Mandatory

Data Model Java Class

Step3: Sample Code for passing the data through the data model.

 

NOTE:

For POS the Amount (Should be greater than equal to 100 and less than equal to 10000 ) and the Mobile Number have to be filled in to proceed with the transaction.

Please refer to the code sample below:

Step4: Override method to get the transaction data

User can check the Status & ClientRefID value using this Callback Method.

Implements POSOnFinishListener in the Activity where this below method will override.

Required Keys to get the transaction data from the Callback

Name Description Key name
flag Status of the Transaction. E.g. - SUCCESS/FAILED FLAG
Transaction Type Type of transaction performed. Here it is “Sale@POS”. TRANSACTION_TYPE
Transaction ID Transaction ID TRANSACTION_ID
Rrn no 12 digit RRN Number RRN_NO
Response code To be used by the client as per requirement RESPONSE_CODE
Amount Amount being transacted. AMOUNT
MID Merchant Identification Number MID
TID Terminal Identification Number TID
Txn ID Transaction ID TXN_ID
Invoice Invoice number for the transaction INVOICE
Card type Type of card used in transaction CARD_TYPE
Appr code Approval Code APPR_CODE
Card number Card Number used in the Transaction CARD_NUMBER
Card holder name Card holder name CARD_HOLDERNAME
Shop Name Name of the Shop SHOP_NAME
Brand Name Name of the Brand  BRAND_NAME
Status Code Satus of the transaction. E.g. - 0 for SUCCESS and 1 for FAILED. STATUS_CODE
Status Description Description of the Status Code. E.g. - TRANSACTION SUCCESSFUL/ TRANSACTION FAILED STATUS_DESC

An example of a successful transaction