Server Side

Generating Hash

You can generate signature using the secret key provided to you. Go to this link and perform following steps:

  • Enter your mobile number into the message field.
  • Enter the partner secret in the Secret Key field.
  • Select the digest algorith to SHA256.
  • Click on Compute HMAC.

Signature = HMAC-SHA256[users mobile number and secret key]

There will be server level details that will be provided to you[secret key and partner id], which you will use to access our server from your server.


Client Side

To start off the integration process, you would be provided a test setup by Quikwallet where you would be given a test merchant account and test credit card credentials to have a first-hand experience of the overall transaction flow. Here, you can make transaction request in our sample app (pointed to the testing server). Next step is to integrate the SDK code with your app. Once the testing is complete, you should be ready to point your app to the Quikwallet production server for some real transactions

Test Credentials You should start with test keys (which targets test server) . Please use the following test account (on test server):

Partner ID: 10

Signature: 55c657c645cfe150f1dad8e891366789211f0397e6b5626cb3b2c8c608390bff

Mobile : 8762070029

Pre requisite

Before proceeding further with this document make sure that you have read above mentioned steps about server side requirements.

You must already have installed and configured:

  • Java JDK version 1.7 or greater
  • Android SDK
  • A Git client
  • Android Studio/Eclipse - see integration samples here Android SDK with UI.

NOTE : minSDKVersion is 10 and targetSDKVersion is 22

This below mentioned sample here is for using network functions only without UI.

Basic Set-up

A. Create object of QWSDK class

You can select server by passing a string to the constructor. Supported configuration strings are :

  • dev : Configuration for development server.
  • uat : Configuration for uat server.
  • staging : Configuration string for staging. Note: In all other case including default,liveserver will be configured

Example:

Assume you want to add a card:

QWSDK qwsdk = new QWSDK("uat"); //QWSDK class instantiated

//Request object creation and initialization


AddCardRequest request = new AddCardRequest();
request.setMobile("8762070029");
request.setSignature("55c657c645cfe150f1dad8e891366789211f0397e6b5626cb3b2c8c608390bff");
request.setPartnerid("10");
request.setCcno("5555555555554444");
request.setExpyyyy("2021");
request.setExpmm("12");
request.setName("name on card");

//calling addcard method


AddcardResponse response = qwsdk.addCard(request);//response object contains response from server.

Note in case of null response/Network time out QWSDK throws QWException. So you must use try catch block to catch QWException.