Zaakpay Express Checkout

Web Redirection flow

In Zaakpay Express Checkout Flow, you can easily integrate it with your website and start accepting online payment through various payment methods such as Credit and Debit Card, Net banking, UPI and Wallet.
Once the customer clicks on the payment button, It redirects to the Zaakpay Standard Checkout Page.

📘

Haven't created your account yet?

Please follow our Getting started guide.

Transact API

Purpose: This API can be used to initiate a transaction and redirect user to Zaakpay Express Checkout Page.

Environment details:

Request Type: POST
Endpoint: /api/paymentTransact/V14

Request Attributes

These Attributes are mentioned in the same order in which Zaakpay Payment Gateway calculates the checksum (Excluding checksum).

Fields DataType Mandatory Description
amount String Y Value should be in paisa. Min Value 100 & Max Value 10000000.
bankid String N For Net Banking, ID of selected bank. e.g. SBI
buyerAddress String N Max length 100 alphanumeric Street address of the buyer. (Part of billing address)
buyerCity String N Max length 30 alphabet, Min length 3. (Part of billing address).
buyerCountry String N Country of the buyer.
buyerEmail String Y Valid email address of the buyer. Should be unique for each user.
couAiId String Optional Valid AiId(Only for BBPS Merchant)
couRefId String Optional Valid RefId(Only for BBPS Merchant)
buyerFirstName String N Max length 30, alphanumeric characters, no special characters or dashes.
buyerLastName String N Max length 30, alphanumeric characters, no special characters or dashes. First name and last name cannot be same. Last Name on card.
buyerPhoneNumber String N Buyer’s landline or mobile phone number, numeric only, no dashes, no spaces. e.g. 123456778
buyerPincode String N Buyer’s pin/zip code. Can have numbers, spaces & hyphens (-) only ( Part of billing address ). e.g. 110092
buyerState String N State of the buyer. (Part of billing address). e.g. Delhi
currency String Y Currency Values defined by Zaakpay. e.g. INR
isAutoRedirect String N Value should be True/False.
isPasskeySupported Boolean Optional true: Merchant opts into Passkey authentication for this payment.
false or omit: Normal 3DS authentication flow.
debitorcredit N Values must be netbanking/wallet/upi
bankid String N Value should be bankid. e.g. SBI
merchantIdentifier String Y Zaakpay’s unique alphanumeric merchant identifier. You can get it from Zaakpay dashboard.
merchantIpAddress String N buyer’s IP address as recorded by your website. e.g. 127.0.0.1
mode String N 1 digit only, Numeric. Value 1 = Domain check, 0=To skip Domain check.
orderId String Y Merchant's unique transaction identifier. Max Length should be 40 and must be unique per website. Note: Orderid should be an alphanumeric value. eg.ZAAK20170421.
product1Description String N Max length 100. Free text, alphanumeric.
product2Description String N Max length 100. Free text, alphanumeric.
product3Description String N Max length 100. Free text, alphanumeric.
product4Description String N Max length 100. Free text, alphanumeric.
productDescription String N Max length 100. Free text, alphanumeric. Text description of what you are selling. Atleast 1 product description is mandatory to show in the bill on payment page. e.g. name of book, name of mobile etc
productInfo JSON N To show Order Details with Offers on Checkout Page. e.g. productInfo= ""customizationField"":""Cashback"", ""listProduct"":[ ""description"":""Apollo Health Insurance"", ""cost"":""Rs.80,000.00"", ""customizationValue"":""Rs.8,123.00"" ], ""terms"":""Cashback will get credited in MobiKwik Wallet"".
purpose String N 1 digit only, Numeric. e.g. Value 0=Service, 1=Goods, 2=Auction, 3=Other
returnUrl String N App Link URL/Redirection URL where the merchant want Zaakpay PG to post the response. For Passkey, the merchant must pass the App Link URL for mobile device only; otherwise, the appropriate Redirection URL must be passed based on the device type.
shipToAddress String N Max length 30, alphanumeric. You may specify this only when buyer’s address is different from shipping address.
shipToCity String N Max length 30, minimum length 3 alphabet. Shipping address city.
shipToCountry String N Shipping address country.
shipToFirstname String N Max length 30, alphanumeric characters, no special characters or dashes.
shipToLastname String N Max length 30, alphanumeric characters, no special characters or dashes.
shipToPhoneNumber String N Shipping address landline or mobile phone number. Numeric only, no dashes,no spaces.
shipToPincode String N Shipping address pin/zip code. Can have Numbers 2-12 digits, Spaces and Hyphens (-)only.
shipToState String N Shipping address state
showMobile String N False:We show the full-fledged version unconditionally. DETECT:We do detection of the user Agent of the browser from which the request is sent & route accordingly. True: Only allowed, if PG represent mobile view. We show the mobile page unconditionally. missing/not sent: Same as DETECT (i.e. We do detection at our end ).
txnDate String N Transaction date in yyyy-mm-dd format. e.g. 1996-04-15
txnType String N Numeric: Zaakpay Checkout will show the tab on the payment page which corresponds to the txnType you provide. e.g. 1-All, 11- Card, 12- Net-Banking, 13- Wallets, 14- UPI, 15 - Only allow Credit Cards, 16 -Only allow Debit Cards, 17 - EZEClick, 18 - ATM+PIN, 19 - MasterPass, 20 - EMI.
paymentOptionTypes String N To display more than one payment options on the Checkout page corresponds to paymentOptionTypes provided. parameter can now have values 1,11,12,13,14,15,16 and be "_" underscore separated. e.g. 11_12.
zpPayOption String N Which Zaakpay Payment Gateway option have you used for this transaction. 1 digit only, numeric default value is 1. e.g. 0=on_zaakpay, 1=button_redirect, 2=app_link, 3=api.
payerAccountNumbers String Optional (TPV Mandatory) RSA encrypted using merchant public key, Base64 encoded. For 1 account, pass one encrypted blob. For 2–5 accounts, pass separate encrypted blobs joined using pipe (|).
payerIFSCs String Optional (TPV Mandatory) RSA encrypted using merchant public key. Values must be pipe-aligned with payerAccountNumbers.
payerNames String Optional (TPV Optional) RSA encrypted using merchant public key. Values must be pipe-aligned with payerAccountNumbers.
payerVpa String Conditional Applicable for UPI Collect TPV transactions.
checksum String Y To be calculated on all request parameters that are posted to Zaakpay API.
For APP LINK:
Checksum String Format: orderId=ABC&txnId=DEF
Final Response Link: applink?orderId=ABC&txnId=DEF&checksum=......

Response Attributes

These are the Response Attributes of Zaakpay Payment Gateway. Response Checksum is calculated based on the below Attributes only.

Fields Description
orderId It is a unique transaction identifier for merchant.
responseCode It is a max 3 digits Zaakpay’s Response code. E.g. Response code 100 is for Successful transaction.
responseDescription It is a description of Zaakpay’s Response code. E.g. Description of Response code 100 is “The transaction was completed successfully”.
checksum Checksum calculated by Zaakpay on all response attributes.
amount Transaction Amount in paisa.
doRedirect True or False
paymentMode Mode of the Payment. E.g. "card"
cardId Unique number generated for card (to fetch the stored card)
cardScheme Visa, MasterCard etc.
cardToken Masked card number First 4 & Last 4 digits of card numbe. E.g. 4012 XXXX XXXX 1881.
bank Name of bank for card.
bankid for Net Banking, ID of selected bank
paymentmethod Payment Method ID for Card and Net Banking transactions. For Card transaction, payment Method ID starts with C and N for Net Banking. It is alphanumeric value with max length 6. First letter is C or N, followed by 5 digits max.
bankErrorCode Acquirer or bank error code when available. NA if not applicable.
bankErrorReason Acquirer or bank error description when available. NA if not applicable.
cardhashId Unique id for each card number used in transaction.
productDescription As Received with the Request
product1Description As Received with the Request
product2Description As Received with the Request
product3Description As Received with the Request
product4Description As Received with the Request
pgTransId Zaakpay Transaction ID
pgTransTime Zaakpay Transaction Date & Time
payerAccountNumbersRSA encrypted payer bank account numbers, Base64 encoded. For 1 account, one encrypted blob is returned. For 2–5 accounts, separate encrypted blobs are joined using pipe (|).
payerIFSCsRSA encrypted payer IFSC codes, pipe-aligned with payerAccountNumbers.
payerNamesRSA encrypted payer names, pipe-aligned with payerAccountNumbers.
payerVpaPayer's VPA (UPI ID), applicable for UPI Collect TPV transactions.

CheckSum Calculation

For both integrity & data-authenticity verification before sending data to the API. We use an algorithm HMAC SHA-256 to calculate the checksum.
Checksum is calculated on all request parameters that is posted to the API. We require data to be posted to Zaakpay server in the NVP (Name-Value Pairs) format.

To calculate the checksum please follow the process below:

  • Create a list of all parameters which you are passing to the API. String used in checksum calculation has a predefined sequence in which parameters are to be concatenated.
  • Create a concatenated string in alphabetical order of all data values in your list, with ampersand '&' at the end of each item with the parameter name. e.g.amount=amountvalue&buyerAddress=buyerAddressvalue&buyerEmail=buyerEmailvalue&merchantIdentifier=merchantIdentifiervalueℴid=orderIdvalue&...
  • Calculate the checksum using the HMAC SHA-256 algorithm, the concatenated string as data and your generated secret key. Checksum String should be in the same order in which request parameters are posted.
  • The resulting checksum calculated should be posted to the Zaakpay API along with other data.

Note : The empty parameters are not to be used in the checksum calculation.

You can check the checksum string generated against the provided request parametershere. The secret key , returnUrl and currency were already configured for the sandbox environment.

📘

Want to simulate Zaakpay Express Checkout Flow?

Follow below steps to initiate the transactions.

Initiate Transaction

  1. Click on Transact API to make a test transaction. Please refer to the below Image.
  2. Insert Merchant Identifier and other fields on our Demo Page.
  3. Click on the "Pay Now" button to proceed with the transaction on Zaakpay.
  4. Use the Test Card details for our Staging Credentials and use live cards for our Live Environment.
  5. Zaakpay will post the response of the transaction to the provided return URL.

Please try your first staging transaction here along with checksum string generation against the provided request attributes.

🚧

Trying on Live Environment? Please keep the below point in mind.

  • Only Live Credentials will work on Live Environment, which you can generate from Zaakpay Dashboard.
  • Fill required details "Website URL" and "Redirect URL" in Zaakpay Dashboard and save it ("Developers">"Integration Urls").
  • Use Live cards for Live transactions.
  • For more details, Please refer to our FAQ.

Sample HTML

This is the sample HTML for reference. It takes required attributes only to initiate a transaction.

<!DOCTYPE html>
<html>
   <head>
      <title>Zaakpay Checkout</title>
   </head>
   <body>
      <form id="zaakpayForm" method="post" action="https://api.zaakpay.com/api/paymentTransact/V14">
         <input type="hidden" name="merchantIdentifier" value="*****************" />
         <input type="hidden" name="orderId" value="TXN1780568139376" />
         <input type="hidden" name="amount" value="1000" />
         <input type="hidden" name="currency" value="INR" />
         <input type="hidden" name="buyerEmail" value="[email protected]" />
         <input type="hidden" name="buyerFirstName" value="Test" />
         <input type="hidden" name="buyerPhoneNumber" value="9999999999" />
         <input type="hidden" name="productDescription" value="Test Product" />
         <input type="hidden" name="returnUrl" value="https://beta2.zaakpay.com/testMerchantOutput.jsp" />
         <input type="hidden" name="txnType" value="1" />
         <input type="hidden" name="mode" value="0" />
         <input type="hidden" name="checksum" value="c8ad85f594f2c7******9e4e8447607e8b9" />
      </form>
      <script>document.getElementById('zaakpayForm').submit();</script>
   </body>
</html>
amount=200&[email protected]&currency=INR&merchantIdentifier=fb2016ffd3a64b2994a6289dc2b671a4&orderId=ZPTest_1629007746215446&

❗️

Getting Error code: 182 "Merchant Data not complete in our database" ?

To resolve this error please follow the below steps:

  • Login to your Zaakpay account
  • Go to Developers tab > Select "Integration Urls"
  • Fill in "Website URL" and "Redirect URL"
  • Save the data. Initiate new test transaction.

Sample Response

This is a sample response of above transaction.

orderId	ZPTest_1629007746215446
responseCode	100
responseDescription	The transaction was completed successfully.
checksum	c8ad85f594f2c7******9e4e8447607e8b9
amount	200
doRedirect	false
paymentMode	Wallet
cardId	NA
cardScheme	NA
cardToken	NA
bank	Mobikwik Wallet
bankid	MW
paymentMethod	N1053
bankErrorCode	NA
bankErrorReason	NA
cardhashid	NA
productDescription	NA
product1Description	NA
product2Description	NA
product3Description	NA
product4Description	NA
pgTransId	ZP5cd9a0435670f
pgTransTime	10/05/2021 17:48:19
txnData={
   "merchantIdentifier":"fb2016ffd3a64b2994a6289dc2b671a4",
   "txns":[
      {
         "amount":"200",
         "pgTransId":"ZP5cd9a0435670f",
         "orderId":"ZPTest_1629007746215446",
         "paymentMode":"Wallet",
         "cardScheme":"NA",
         "product3Description":"NA",
         "cardToken":"NA",
         "responseCode":"100",
         "bank":"Mobikwik Wallet",
         "bankid":"MW",
         "doRedirect":"false",
         "product1Description":"NA",
         "product4Description":"NA",
         "responseDescription":"The transaction was completed successfully. ",
         "cardId":"NA",
         "cardhashid":"NA",
         "paymentMethod":"N1053",
         "product2Description":"NA",
         "pgTransTime":"10\/05\/2021 17:48:19",
         "txnDate":"2021-10-05 17:48:20.354",
         "productDescription":"NA"
      }
   ]
}&checksum=5416275cc981e2508aee02d77994e13719603465b92df98b1a1b3ab26cd5c18a
👍

Final Response after Redirection

After completion of transaction, Zaakpay will redirect back to merchant’s returnUrl with the Response Attributes.

Response Checksum

Response Checksum will be calculated on all parameters in the same order as given below. Prepare checksum string by concatenating all param value with ampersand '&' at the end of each value with the parameter name. For Instance, Please refer to below Response Checksum String and Generated Checksum.

amount=200&bank=Mobikwik Wallet&bankid=MW&cardId=NA&cardScheme=NA&cardToken=NA&cardhashid=NA&doRedirect=false&orderId=ZPTest_1629007746215446&paymentMethod=N1053&paymentMode=Wallet&responseCode=100&responseDescription=The transaction was completed successfully. &productDescription=NA&product1Description=NA&product2Description=NA&product3Description=NA&product4Description=NA&pgTransId=ZP5cd9a0435670f&pgTransTime=10/05/2021 17:48:19&bankErrorCode=NA&bankErrorReason=NA&
c8ad85f594f2c79e517715087405422b7bce125361dde65b49e4e8447607e8b9

Zaakpay Payment Gateway Response codes

These are the transact API response codes.

Response Code Response Description API Version
100The transaction was completed successfully.13
102This payment was cancelled. You may start a new payment whenever you are ready.13
103Fraud Detected.13
106IpAddress Blacklisted.13
107Transaction Amount not in specified amount range.13
108Validation Successful.13
109This payment could not be processed. Please start the payment again, or use another payment method.13
110MerchantIdentifier field missing or blank.13
111MerchantIdentifier not valid.13
126Date received with request was not valid.13
127ReturnUrl does not match the registered domain.13
128Order Id already processed.13
129OrderId field missing or blank.13
130OrderId received with request was not valid.13
131ReturnUrl field missing or blank.13
132ReturnUrl received with request was not valid.13
133Email in OrderDetail field missing or blank.13
134Email in OrderDetail received with request was not valid.13
135BuyerFirstName field missing or blank.13
136BuyerFirstName received with request was not valid.13
137BuyerLastName field missing or blank.13
138BuyerLastName received with request was not valid.13
139BuyerAddress field missing or blank.13
140Address in BillingAddress received with request was not valid.13
141BuyerCity field missing or blank.13
142City in BillingAddress received with request was not valid.13
143BuyerState field missing or blank.13
144State in BillingAddress received with request was not valid.13
145BuyerCountry field missing or blank.13
146Country in BillingAddress received with request was not valid.13
147BuyerPincode field missing or blank.13
148PinCode in BillingAddress received with request was not valid.13
149BuyerPhoneNumber field missing or blank.13
150PhoneNumber in OrderDetail received with request was not valid.13
151TxnType field missing or blank.13
152TxnType received with request was not valid.13
153ZpPayOption field missing or blank.13
154ZpPayOption received with request was not valid.13
155Mode field missing or blank.13
156Mode received with request was not valid.13
157Currency field missing or blank.13
158Currency received with request was not valid.13
159Amount field missing or blank.13
160The payment amount could not be confirmed. Please start the payment again.13
161BuyerIpAddress field missing or blank.13
162BuyerIpAddress received with request was not valid.13
163Purpose field missing or blank.13
164Purpose received with request was not valid.13
165ProductDescription field missing or blank.13
166ProductDescription received with request was not valid.13
167Product1Description received with request was not valid.13
168Product2Description received with request was not valid.13
169Product3Description received with request was not valid.13
170Product4Description received with request was not valid.13
171Address in ShippingAddress received with request was not valid.13
172City in ShippingAddress received with request was not valid.13
173State in ShippingAddress received with request was not valid.13
174Country in ShippingAddress received with request was not valid.13
175Pincode in ShippingAddress received with request was not valid.13
176ShipToPhoneNumber received with request was not valid.13
177ShipToFirstname received with request was not valid.13
178ShipToLastname received with request was not valid.13
179Date is blank.13
180Checksum received with request is not equal to what we calculated.13
181Merchant Data complete.13
182This payment method is not accepted for this purchase. Please use another payment method.13
183This payment was declined. Please try again shortly, or use another payment method.13
400Your bank declined this payment. Please check with your bank for details, or use another payment method.13
401The transaction was rejected by the acquiring bank.13
402This test transaction has been successfully completed.13
403Transaction failed because this card has been blocked by Zaakpay.13
501debitorcredit is blank.13
502bankid is blank.13
506The CVV entered is incorrect. Please check it and try again.13
4001Refund amount not valid with the provided refund type14
4002COU fields are supported only on API version 13.14
4003couRefId and couAiId are required for COU-enabled merchants.14
4004COU validation failed.14
4005couRefId is not valid.14
4006Merchant identifier(s) not valid for COU.14
4007This payment method is not permitted for this transaction. Please use another payment method.14
4008This payment method is temporarily locked after too many PIN attempts. Please use another payment method.14
4009One or more card details entered are incorrect. Please check them and try again.14
4010This payment has been attempted several times. Please wait a few minutes before trying again.14
4011Cards issued in this country are not accepted for this payment. Please use another payment method.14
4012A payment with the same details was received recently. Please check your account before trying again.14
4013Your bank declined this payment. Please check with your bank for details, or use another payment method.14
4014This payment method is unavailable until {0}. Please use another payment method, or try again after that time.14
4015This card is not enabled for online payments. Please check with your bank, or use another payment method.14
4016Your bank declined this payment. Please check with your bank for details, or use another payment method.14
4017This card could not be saved securely. Please try again shortly, or use another payment method.14
4018This card cannot be used for online payments at present. Please check with your bank, or use another payment method.14
4019The OTP has expired. Please start the payment again to receive a new code.14
4020A UPI PIN has not been set for this account. Please set it in your UPI app, or use another payment method.14
4021This amount is above the UPI limit for a single payment. Please try a lower amount, or use another method.14
4022The limit on the number of payments in this period has been reached. Please try again later, or use another payment method.14
4023This amount is above the limit applied to the first few payments from a new account. Please try a lower amount, or use another method.14
4024This payment could not be completed at the moment. Please try again shortly, or use another payment method.14
4025This amount is above the limit applied to a new account or a new device. Please try a lower amount, or use another method.14
4026Your bank declined this payment. Please check with your bank for details, or use another payment method.14
4027This payment was declined. Please use another payment method.14
4028Your bank declined this payment. Please check with your bank for details, or use another payment method.14
4029Your bank did not recognise this device. Please register again in your payment app, or use another payment method.14
4030This account is currently on hold. Please check with your bank, or use another payment method.14
4031This account is not active. Please check with your bank, or use another payment method.14
4032Your bank could not find this account. Please check the details, or use another payment method.14
4033This payment is not permitted from this account. Please use another payment method.14
4034This payment option is not active on this account yet. Please check with your bank, or use another payment method.14
4035This payment could not be confirmed in time. Please check your account before trying again.14
4036This payment method is unavailable at the moment. Please try again later, or use another payment method.14
4037Your bank declined this payment without giving a reason. Please check with your bank, or use another payment method.14
4038This payment is still being confirmed. Please do not start a new payment. Any amount debited will be confirmed or returned.14
4039This payment could not be completed at the moment. Please try again shortly, or use another payment method.14
4040This payment could not be completed at the moment. Please try again in a few minutes.14
4041This payment may already have been processed. Please check your account before trying again.14
4042This payment could not be confirmed. Please check your account before trying again.14
4043This payment could not be started. Please try again shortly, or use another payment method.14
4044This payment could not be confirmed. Please check your account before trying again.14
4045The payment request has expired. Please start the payment again.14
4046This UPI ID is not valid. Please check it, or use another payment method.14
4047This payment method is unavailable at the moment. Please try again later, or use another payment method.14
4048This payment could not be completed at the moment. Please try again shortly, or use another payment method.14
4049This bank is not available on UPI at the moment. Please use another account or payment method.14
4050This autopay request could not be set up. Please check it in your UPI app, or use another payment method.14
4051This UPI ID cannot be used for this payment. Please use another UPI ID or payment method.14
4052The payment amount could not be processed. Please start the payment again.14
4053This payment session has expired. Please start the payment again.14
4054This payment could not be located. Please check your account before starting a new payment.14
4055This payment is still being confirmed. Please do not start a new payment. Any amount debited will be confirmed or returned.14
4056This payment could not be completed. Please try again shortly, or use another payment method.14
4057This payment could not be confirmed. Please check your account before trying again.14
4058This payment could not be completed. Please try again shortly.14
4059This payment could not be completed. Please try again shortly, or use another payment method.14

NOTE : Response codes with version 13 would be available in response only for transactions initiated with versions equal and less then version 13. Similarly if version 14 is used then response codes for both version 13 & version 14 would be received in API response.

❗️

Transactions Failing on Live Environment?

  • Make sure you are using Live cards for Live Transactions.
  • For more details, Please refer to our FAQ.

Did this page help you?