Skip to content

Create Single page

| View as Markdown

Single page 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
ParameterType ValueDescriptionValue Like
merchant_name requiredString
(1-80)
Name of the MerchantABC
subdomain requiredAlphanumeric
(1-80)
Domain name of the Merchant eg. abc.nwpay.co.inhttps://abc.nwpay.co.in
airpay_merchant_id requiredNumeric
(1-11)
Merchant Id1088
airpay_username requiredAlphanumeric
(1-50)
Merchant Usernameuserabc
airpay_password requiredAlphanumeric
(1-50)
Merchant Passwordpassabc
airpay_secret_key requiredAlphanumeric
(1-100)
Merchant Secret Keyhk72f56432ec
template optionalNumericTemplate (length 1)
Expected Values 1,2,3,4,5, Default Value 1.
checksum requiredAlphanumeric
(1-100)
Checksum
hash_hmac(‘sha256’,merchant_name + subdomain + airpay_merchant_id + airpay_username + airpay_username + airpay_secret_key);
91f5evhk72f56432ec678s
ParameterType ValueDescriptionValue Like
Result requiredStringResult 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)
200
SinglePager requiredStringIt will display url of the subdomain{"Subdomain":"https://abc.nwpay.co.in"}
{
"merchant_name": "ABC",
"subdomain": "https://abc.nwpay.co.in",
"airpay_merchant_id": "1088",
"airpay_username": "userabc",
"airpay_password": "passabc",
"airpay_secret_key": "hk72f56432ec",
"template": "1",
"checksum": "91f5evhk72f56432ec678sdfes685h42sd2t21k430912508233b7r37562g2hps"
}
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"
}