Wallet Checkout


POST METHOD

The user will be redirected on the url returned in the response.


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


Sample Request

{
   "walletOwnerId":"1",
   "telnocc":"",
   "fromMobile":"",
   "customerEmail":"test2@gmail.com",
   "password":"Test@1234",
   "amount":"1.00",
   "fromCurrencyCode":"USD",
   "merchantTransactionId":"wRo7UYJ",
   "orderDescription":"Buying Pizza, Burgers, Coke",
   "merchantRedirectUrl":"https://ife.paymentz.com/TestApp/redirecturl.jsp",
   "notificationUrl":"https://staging.paymentz.com/transaction/TestBENotification",
   "secKey":"o5jxbkbM",
   "merchantEmail":"merchant1@gmail.com",
   "toMobile":"",
   "toTelnocc":"",
   "ip":"192.168.0.1",
   "verificationHash":"0010b4e7fa742152bea472049d8314f2d50cfa973f0e1ed242009548126ee704"
} 
    

Sample Response

{
   "responseCode":"1",
   "status":"SUCCESS",
   "url": "https://cmob.paymentz.com/checkout/pay?token=ex5sTA9z…DrZugPfrdGSJU6AFQP1k5ySkqrTaAk=&trackingId=259794"

} 
    

NOTE:

  • verificationHash - SHA256Algorithm.generateSHA256Hash(secKey.trim() + walletOwnerId.trim() + amount.trim() + fromCurrencyCode.trim() + merchantTransactionId.trim() + merchantRedirectUrl.trim())


How to generate verification Hash?

Verification Hash has to be calculated with following combination using SHA256 algorithm and need to be send along with the authentication parameters in each server-to-server request:
<secKey><walletOwnerId><amount><fromCurrencyCode><merchantTransactionId><merchantRedirectUrl>


GET METHOD

The user will be redirected to the checkout page on submitting the form.


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


Sample Request

{
   "walletOwnerId":"1",
   "telnocc":"",
   "fromMobile":"",
   "customerEmail":"test2@gmail.com",
   "password":"Test@1234",
   "amount":"1.00",
   "fromCurrencyCode":"USD",
   "merchantTransactionId":"wRo7UYJ",
   "orderDescription":"Buying Pizza, Burgers, Coke",
   "merchantRedirectUrl":"https://ife.paymentz.com/TestApp/redirecturl.jsp",
   "notificationUrl":"https://staging.paymentz.com/transaction/TestBENotification",
   "secKey":"o5jxbkbM",
   "merchantEmail":"merchant1@gmail.com",
   "toMobile":"",
   "toTelnocc":"",
   "ip":"192.168.0.1",
   "verificationHash":"0010b4e7fa742152bea472049d8314f2d50cfa973f0e1ed242009548126ee704"
} 
    

NOTE:

  • verificationHash - SHA256Algorithm.generateSHA256Hash(secKey.trim() + walletOwnerId.trim() + amount.trim() + fromCurrencyCode.trim() + merchantTransactionId.trim() + merchantRedirectUrl.trim())


How to generate verification Hash?

Verification Hash has to be calculated with following combination using SHA256 algorithm and need to be send along with the authentication parameters in each server-to-server request:
<secKey><walletOwnerId><amount><fromCurrencyCode><merchantTransactionId><merchantRedirectUrl>