Wallet Checkout
The user will be redirected on the url returned in the response.
The request will be send with POST method over HTTPS to the
https://cmob..com/walletServices/WalletCustomerService/checkoutPayment
endpoint.
Sample Request
{ "walletOwnerId":"1", "telnocc":"", "fromMobile":"", "customerEmail":"test2@gmail.com", "password":"Test@1234", "amount":"1.00", "fromCurrencyCode":"USD", "merchantTransactionId":"wRo7UYJ", "merchantRedirectUrl":"https://www.merchantRedirectUrl.com", "notificationUrl":"https://www.notificationUrl.com", "merchantEmail":"merchant1@gmail.com", "toMobile":"", "toTelnocc":"", "ip":"192.168.0.1", "verificationHash":"0010b4e7fa742152bea472049d8314f2d50cfa973f0e1ed242009548126ee704" }
Sample Response
{ "responseCode":"1", "status":"SUCCESS", "url": "https://cmob..com/checkout/pay?token=ex5sTA9z…DrZugPfrdGSJU6AFQP1k5ySkqrTaAk=&trackingId=259794" }
NOTE:
- verificationHash - SHA256Algorithm.generateSHA256Hash(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:
<walletOwnerId><amount><fromCurrencyCode><merchantTransactionId><merchantRedirectUrl>
The checkout page will be loaded on the page itself after submitting the form.
The request will be send with GET method over HTTPS to the
https://cmob..com/checkout
endpoint.
Sample Request
{ "walletOwnerId":"1", "telnocc":"", "fromMobile":"", "customerEmail":"test2@gmail.com", "password":"Test@1234", "amount":"1.00", "fromCurrencyCode":"USD", "merchantTransactionId":"wRo7UYJ", "merchantRedirectUrl":"https://www.merchantRedirectUrl.com", "notificationUrl":"https://www.notificationUrl.com", "merchantEmail":"merchant1@gmail.com", "toMobile":"", "toTelnocc":"", "ip":"192.168.0.1", "verificationHash":"0010b4e7fa742152bea472049d8314f2d50cfa973f0e1ed242009548126ee704" }
NOTE:
- verificationHash - SHA256Algorithm.generateSHA256Hash(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:
<walletOwnerId><amount><fromCurrencyCode><merchantTransactionId><merchantRedirectUrl>