Load Money (Using Web View Component)


Load money using standard kit and WebView component.



How to load money using standard kit?

The POST request will be send over HTTPS to the endpoint.


Request Parameters (URL Encoded)

String params =
    "merchantTransactionId="TD32434553454"
    &amount="50.00"
    &currency="USD"
    &descriptor="TD32434553454"
    &customerEmail="xyz@paymentz.com"
    &customerId="427"
    &customerContact="919096831656"
    &walletOwnerId="1"
    &verificationHash="8416e8c5cf8cecc7325d19c5b12015863d37f18f2ee9b669c975bf2db2be6125"
    &transactionType="LOAD"
    &customerName="testdocs"
    &mobilePlatform="android"
    &paymentMode="CC";

Response Parameters

{  
   "status":"Success",
   "amount":"50.00",
   "statusdescription":"Transaction Successful"
}

NOTE:

  • merchantTransactionId – Provide Unique Id everytime
  • descriptor - same value of merchantTransactionId
  • customerContact – mobile number with country code
  • transactionType – LOAD
  • mobilePlatform – android/iOS
  • paymentMode – from above payment mode table
  • verificationHash – SHA256Algorithm.generateSHA256Hash(secKey.trim()+customerId.trim()+customerContact.trim()+walletOwnerId.trim())


How to generate verification hash?

Verification Hash has to be calculated with following combination and need to be send along with the authentication parameters in each server-to-server request:
<secKey><customerId><customerContact><walletOwnerId>


Sample Code

Example to call from WebView component

webView.postUrl(URL, params.getBytes());
webView.getSettings().setJavaScriptEnabled(true);
webView.addJavascriptInterface(this,"android");

List of response code from API

Status
Success
Failed
Pending
Declined
Copyright © . All Rights Reserved