Skip to content

Seamless Transaction Integration

| View as Markdown

In seamless transaction, the user will be doing the payment from the merchant’s page itself instead of being redirected to airpay’s payment page for completing the payment.

Note: If specific payment modes are specified, only those will be visible to the customer while making a payment.

post

https://kraken.airpay.co.in/airpay/pay/payindexapi.php
FieldTypeDescription
Content-TypeStringapplication/x-www-form-urlencoded
FieldTypeRequiredDescription
buyer_emailEmailYesBuyer Email (length 6-50)
buyer_phoneNumericSpaceHyphen
buyer_first_nameAlphanumericSpaceYes
buyer_last_nameAlphanumericSpaceYes
buyer_addressAlphanumericSpaceYes
buyer_cityAlphanumericSpaceYes
buyer_stateAlphanumericSpaceYes
buyer_countryAlphanumericSpaceYes
buyer_pincodeAlphanumericYesBuyer Pin code (length 4-8)
order_idAlphanumericYesOrder ID (length 1-25)
amountNumericYesAmount with two decimals (length 1-6 .2)
UIDAlphanumericYesUnique user identifier from merchant
channelAlphanumericYesPayment Channel (length 1-50)
modeAlphanumericYesChannel mode (length 1-50)
private_keyAlphanumericYesPrivate Key (length 10-200)
private_key = hash(‘sha256’, secret.’@’.username.’:
cash_pincodeAlphanumericYesPin code for cash payment
txnsubtypeNumericNoTransaction SubType, type of transaction (length 1-100)
1 - INR-auth-capture
2 - INR-sale auth
3 - INR-Moto
4 - INR-Moto auth-capture
5 - INR-Sale-dcc
6 - INR-Dcc auth-capture
7 - INR-3 Months
8 - INR-6 Months
9 - INR-9 Months
10 - INR-12 Months
11 - INR-18 Months
12 - INR-SI
13 - INR-24 Months
36 - INR-36 Months
74 - INR-3 Months Debit
75 - INR-6 Months Debit
76 - INR-9 Months Debit
77 - INR-12 Months Debit
merchant_idNumericYesMerchant ID (length 1-20)
chmodCharsYesPayment Mode
upi - UPI Channel
cash - Cash Channel
checksumAlphanumericYesChecksum (length 10-200)
alldata = buyer_email.buyerFirstName.buyerLastName.buyer_address.buyer_city.buyer_state.buyerCountry.amount.order_id.uid;
Key generated by : key256 = hash(‘SHA256’, username.”:“.password);
Checksum generated by : checksum = hash(‘SHA256’, key256.’@’.alldata.date(‘Y-m-d’));
vpaAlphanumericNoVirtual Payment Address (required in UPI)
apiNameAlphanumericNoAction (required in UPI)
Default - collectVPA
mer_domAlphanumericYesMerchant Domain in BASE_64 (length 1-50)
currencyNumericYesNumeric currency code eg: 356 (length 3)
isocurrencyCharsYesISO Currency code eg: INR (length 3)
domain_urlAlphanumericNoDomain URL (length 1-50)
upi_tpv_accountNumericNoBank Account number used for restricting UPI payments to the linked account. Contact Airpay support team to enable this feature.
upi_tpv_ifscAlphanumericNoIFSC code is mandatory if upi_tpv_account is activated.
HTTP POST
"buyer_email": "buyer@example.com",
"buyer_phone": 9898989989898,
"buyer_first_name": "Sam",
"buyer_last_name": "Johan",
"buyer_address": "3rd floor, Trust Houseformat toBldg.Dr. E.Borges Road, behind ITC Hotel"
"buyer_city ": "Mumbai",
"buyer_state": "Maharashtra",
"buyer_country": "India",
"buyerPinCode": "400083",
"order_id": "d3t54978",
"amount": 123.45,
"UID": "ehrjdsihogfoejroejfrjwfw9f9ewu49r4m4t9rrtj04",
"vpa":"geooorge@hdfcbank",
"private_key": "91e747ae8fd76152ddba23ae7547e614bdea61d6356a3db679380b1ec4a8b2da",
"merchant_id": 767807,
"checksum": "d5423b57981330ac8d9c6cd23a378c0d",
"currency": 356,
"isocurrency": "INR",
"mode":"vpa",
"channel":"upi",
"txnsubtype" : 2,
"domainurl":"https://example.nowpay.co.in",
"mer_dom":"aHR0cCUzQSUyRiUyRmxvY2FsaG9zdA=="
FieldTypeDescription
TRANSACTIONIDNumericorderid you have send to airpay system
APTRANSACTIONIDNumericairpay transaction reference number
AMOUNTNumerictransaction amount
TRANSACTIONSTATUSNumericTransaction Payment Status
Success - 200
Transaction is success
Transaction in Process - 211
Transaction in processing
Failed - 400
Transaction in 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 is no records found
TRANSACTIONPAYMENTSTATUSAlphanumericTransaction payment status
SUCCESS
TRANSACTION IN PROCESS
FAILED
DROPPED
CANCEL
INCOMPLETE
BOUNCED
RISK
NO RECORDS
MESSAGEAlphanumericResponse message received from payment gateway
Success
Transaction is success
Transaction in Process
Transaction in processing
Failed
Transaction in failed
Dropped
The transaction will not register properly
Cancel
payment that has not yet been processed
Incomplete
Not recieved any call back from bank
Bounced
The transaction has bounced
No Records
There is no records found
CUSTOMERVPAAlphanumericVPA will return if channel is upi
MERCIDNumericMerchant ID
TXN_MODEAlphanumericTransaction mode LIVE or Sandbox
CHMODAlphanumericChanel of Payment done
CURRENCYCODENumericPayment Currency
CUSTOMERAlphanumericCustomer name
CUSTOMERPHONENumericCustomer phone number
CUSTOMEREMAILAlphanumericCustomer email
TRANSACTIONTYPENumericTransaction Type
Mandate approved, Auth - 310
Sale - 320
Capture - 330
Refund - 340
Chargeback - 350
Reversal - 360
SaleComplete - 370
SaleAdjust - 380
TipAdjust - 390
Sale+Cash - 400
Cashback - 410
Void - 420
Release - 430
Cashwithdrawal - 440
RISKNumericIf the transaction is at risk 1, otherwise 0.
BILLEDAMOUNTNumericIncludes total amount of bill amount with two decimals
TOKENAlphanumerictoken string
TRANSACTIONTIMEDateTransaction Time
CARDISSUERAlphanumericCard issur name, this field is available in pg,emi,express payment
CARD_NUMBERAlphanumericCard number, this field is available in pg,emi,express payment
CARDUNIQUECODEAlphanumericCard unique code, this field is available in pg,emi,express payment
BANKNAMEAlphanumericName of Bank, this field is available in pg,emi,pos
CARDCOUNTRYAlphanumericCard issued country, this field is available in pg,emi,pos
CARDTYPEAlphanumericType of Card Credit/Debit/Unknown
BANKRESPONSEMSGAlphanumericResponse message from the bank
ap_SecureHashAlphaNumericSecure hash generated by airpay If Channel is upi,
Hash generated by : crc32(TRANSACTIONID. : .APTRANSACTIONID. : .AMOUNT. : .TRANSACTIONSTATUS. : .MESSAGE. : .MID. : .USERNAME. : . CUSTOMERVPA); Otherwise,
Hash generated by : crc32(TRANSACTIONID. : .APTRANSACTIONID. : .AMOUNT. : .TRANSACTIONSTATUS. : .MESSAGE. : .MID. : .USERNAME);
HTTP/1.1 200 OK
<?xml version="1.0" encoding="UTF-8"?>
<RESPONSE>
<TRANSACTION>
<TRANSACTIONPAYMENTSTATUS> <![CDATA[Authorize]]> </TRANSACTIONPAYMENTSTATUS>
<mercid><![CDATA[1899]]></mercid>
<TRANSACTIONID><![CDATA[904777]]></TRANSACTIONID>
<APTRANSACTIONID><![CDATA[1899]]></APTRANSACTIONID>
<TXN_MODE><![CDATA[LIVE]]></TXN_MODE>
<CHMOD><![CDATA[cash]]></CHMOD>
<AMOUNT><![CDATA[10.00]]></AMOUNT>
<CURRENCYCODE><![CDATA[356]]></CURRENCYCODE>
<TRANSACTIONSTATUS><![CDATA[200]]></TRANSACTIONSTATUS>
<MESSAGE><![CDATA[Success]]></MESSAGE>
<CUSTOMER><![CDATA[BACKEND3 RETAILER]]></CUSTOMER>
<CUSTOMERPHONE><![CDATA[7710804049]]></CUSTOMERPHONE>
<CUSTOMEREMAIL><![CDATA[BACKEND3@AIRPAY.CO.IN]]></CUSTOMEREMAIL>
<TRANSACTIONTYPE><![CDATA[310]]></TRANSACTIONTYPE>
<TRANSACTIONTIME><![CDATA[03-02-2022 19:16:15]]></TRANSACTIONTIME>
<BILLEDAMOUNT><![CDATA[10.00]]></BILLEDAMOUNT>
<BANKNAME><![CDATA[cash]]></BANKNAME>
<ap_SecureHash><![CDATA[64ec154babfc494f45fd1f65a5708050849]]></ap_SecureHash>
</TRANSACTION>
</RESPONSE>
HTTP/1.1 200 OK
<?xml version="1.0" encoding="UTF-8"?>
<RESPONSE>
<TRANSACTION>
<TRANSACTIONPAYMENTSTATUS><![CDATA[FAIL]]></TRANSACTIONPAYMENTSTATUS>
<mercid><![CDATA[19378]]></mercid>
<TRANSACTIONID><![CDATA[1643895692]]></TRANSACTIONID>
<APTRANSACTIONID><![CDATA[17661509]]></APTRANSACTIONID>
<TXN_MODE><![CDATA[LIVE]]></TXN_MODE>
<CHMOD><![CDATA[cash]]></CHMOD>
<AMOUNT><![CDATA[10.00]]></AMOUNT>
<CURRENCYCODE><![CDATA[356]]></CURRENCYCODE>
<TRANSACTIONSTATUS><![CDATA[400]]></TRANSACTIONSTATUS>
<MESSAGE><![CDATA[Fail]]></MESSAGE>
<CUSTOMER><![CDATA[BACKEND3 RETAILER]]></CUSTOMER>
<CUSTOMERPHONE><![CDATA[7710804049]]></CUSTOMERPHONE>
<CUSTOMEREMAIL><![CDATA[BACKEND3@AIRPAY.CO.IN]]></CUSTOMEREMAIL>
<TRANSACTIONTYPE><![CDATA[320]]></TRANSACTIONTYPE>
<BILLEDAMOUNT><![CDATA[10.00]]></BILLEDAMOUNT>
<TRANSACTIONTIME><![CDATA[03-02-2022 19:14:01]]></TRANSACTIONTIME>
<ap_SecureHash><![CDATA[1773029231]]></ap_SecureHash>
</TRANSACTION>
</RESPONSE>