Skip to content

Create Single Pager

| View as Markdown

Single pager is used to create the payment form and subdomain (Domain name of the Merchant) which is collecting the details of the customers before payment and displays the details of the merchant. We must pass merchant name, sub domain, airpay merchant id, username, password, and secret key, then we will get success response and subdomain allocated to this merchant.

https://kraken.airpay.co.in/airpay/ms/singlepager/api/create
FieldTypeRequiredDescription
merchant_nameStringYesName of the Merchant (length 80)
subdomainVarcharYesDomain name of the Merchant (length 80)
Example: abc.nwpay.co.in
airpay_merchant_idNumericYesMerchant ID (length 11)
airpay_usernameVarcharYesMerchant Username (length 50)
airpay_passwordVarcharYesMerchant Password (length 50)
airpay_secret_keyVarcharYesMerchant Secret Key (length 100)
templateNumericNoTemplate (length 1)
Expected values: 1, 2, 3, 4, 5
Default value: 1
checksumVarcharYesChecksum generation:
hash_hmac('sha256', merchant_name + subdomain + airpay_merchant_id + airpay_username + airpay_username + airpay_secret_key, '91f5evhk72f56432ec678sdfes685h42sd2t21k430912508233b7r37562g2hps');
{
"merchant_name": "ABC",
"subdomain": "https://abc.nwpay.co.in",
"airpay_merchant_id": "1088",
"airpay_username": "userabc",
"airpay_password": "passabc",
"airpay_secret_key": "91f5evhk72f56432ec678sdfes685h42sd2t21k430912508233b7r37562g2hps",
"template": "1",
"checksum": "91f5evhk72f56432ec678sdfes685h42sd2t21k430912508233b7r37562g2hps"
}
FieldTypeDescription
ResultStringResult message
Success - 200 (The transaction is success)
Transaction in Process - 211 (The transaction is processing)
Failed - 400 (The transaction is failed)
Dropped - 401 (The transaction will not register properly)
Cancel - 402 (payment that has not yet been processed)
Incomplete - 403 (Not recieved any call back from bank)
Bounced - 405 (The transaction has bounced)
No Records - 503 (There are no records found)
SinglePagerStringIt will display url of the subdomain
HTTP/1.1 200 OK
{
"Result": "Success",
"SinglePager": {"Subdomain":"https://abc.nwpay.co.in"}
}
{
"SinglePager": {
"Errors": {
"00": "Header Aunthentication Failed, Invalid Content-Type",
"01": "Header Aunthentication Failed, Airpay-Key Can Not Be Empty",
"02": "Header Aunthentication Failed, Invalid Airpay-Key",
"03": "Merchant Name Can Not Be Empty",
"04": "Subdomain Can Not Be Empty",
"05": "Airpay Merchant Id Can Not Be Empty",
"06": "Airpay Username Can Not Be Empty",
"07": "Airpay Password Can Not Be Empty",
"08": "Airpay Secret Key Can Not Be Empty",
"09": "Domain Already Exist",
"10": "Invalid Request",
"11": "Checksum Can Not Be Empty",
"12": "Wrong Checksum",
}
},
"Result": "Fail"
}