S.No.
|
Method
|
Request
|
Response
|
1.
|
Sale
If StatusCheckOnSaleRequestEnabled is Enabled in Configurations on Sale request
(Since the Wired ECR library is configuration-driven, if the merchant has enabled this "StatusCheckOnSaleRequestEnabled" flag in configurations then on Sale Request itself, this library will start checking the status of the transaction after a certain interval of time (configurable), and then will send the final status response of transaction to the merchant in JSON string (all these status check start time, interval, and sale request timeout is configurable)).
|
("COM1", 115200, 0, 8, 1, 1, "MID","order1" ,"All", "10000" , "FOOD:2|GIFT:6", "extendInfo://values?productValidationValue=12764874894894898&merchantTxnId=82938938983&
caNumber=34567777","printInfo://values?merchantTxnId=82938938983&caNumber=34567777&billNumber=xyz123","gstInformation://values?gstIn=08TESTF0078P1ZP&gstBrkUp=CGST:10|SGST:10| IGST:10| CESS:10| GSTIncentive:10| GSTPCT:10&invoiceNo=Invoice34234321&invoiceDate=2019-06-11T13:21:50+05:30", "ALL", "100", "1000")
|
{
"merchantId": "YOUR_MID_HERE",
"orderId": "order1",
"amount": "10000",
"statusCode": "001",
"statusMessage": "Process Transaction has been Initiated",
"extendInfo": "extendInfo://values?productValidationValue=12764874894894898&merchantTxnId=82938938983&
caNumber=34567777",
"printInfo": "printInfo://values?merchantTxnId=82938938983&caNumber=34567777&billNumber=xyz123"
}
|
{
"merchantId": "YOUR_MID_HERE",
"orderId": "order1",
"txnId": "20201229111212800110168957300518436",
"authCode": "000179",
"txnDate": "29 Dec 2020, 06:52:55 PM",
"rrn": "000011386153",
"cardNo": "402985******4207",
"issuingBank": "Bank of Bahrain and Kuwait",
"amount": "10000",
"txnType": "CARD",
"invoiceNumber": "000002",
"extendInfo": "extendInfo://values?productValidationValue=12764874894894898&merchantTxnId=82938938983&
caNumber=34567777",
"printInfo": "printInfo://values?merchantTxnId=82938938983&caNumber=34567777&billNumber=xyz123" ,
"tid": "12349162",
"aid": "A0000000031010",
"payMethod": "DEBIT_CARD",
"cardType": "DEBIT_CARD",
"cardScheme": "VISA",
"bankResponseCode": "00",
"bankMid": "5PT000000000878",
"bankTid": "5P004052",
"productManufacturer": "",
"productCategory": "",
"productSerialNoType": "",
"productSerialNoValue": "",
"productName": "",
"emiTxnType": "",
"emiTenure": "",
"emiInterestRate": "",
"emiMonthlyAmount": "",
"emiTotalAmount": "",
"bankOfferApplied": "false",
"bankOfferType": "",
"bankOfferAmount": "",
"subventionCreated": "false",
"subventionType": "",
"subventionOfferAmount": "",
"acquiringBank" : "ICICI",
"virtualPaymentAddress":"9650*****0@paytm", "tipAmount":"100", "totalAmount":"1000",
"statusCode": "101",
"statusMessage": "Transaction was successful"
}
|
2.
|
Void
|
("COM1", 115200, 0, 8, 1, 1, "MID", "order1", "extendinfo://values?merchantTxnId=82938938983&caNumber=34567777")
|
{
"merchantId": "YOUR_MID_HERE",
"orderId": "order1",
"statusCode": "000",
"statusMessage": "Command Initiated Successfully"
}
|
3.
|
Cancel
|
("COM1", 115200, 0, 8, 1, 1, "MID", "order1")
|
{
"merchantId": "YOUR_MID_HERE",
"orderId": "order1",
"statusCode": "000",
"statusMessage": "Command Initiated Successfully"
}
|
4.
|
Status
|
("COM1", 115200, 0, 8, 1, 1,"MID", "order1" )
|
{
"merchantId": "YOUR_MID_HERE",
"orderId": "order1",
"txnId": "20201229111212800110168957300518436",
"authCode": "000179",
"txnDate": "29 Dec 2020, 06:52:55 PM",
"rrn": "000011386153",
"cardNo": "402985******4207",
"issuingBank": "Bank of Bahrain and Kuwait",
"amount": "10000",
"txnType": "CARD",
"invoiceNumber": "000002",
"extendInfo": "extendInfo://values?productValidationValue=12764874894894898&merchantTxnId=82938938983&
caNumber=34567777",
"printInfo": "printInfo://values?merchantTxnId=82938938983&caNumber=34567777&billNumber=xyz123"
"tid": "12349162",
"aid": "A0000000031010",
"payMethod": "DEBIT_CARD",
"cardType": "DEBIT_CARD",
"cardScheme": "VISA",
"bankResponseCode": "00",
"bankMid": "5PT000000000878",
"bankTid": "5P004052",
"productManufacturer": "",
"productCategory": "",
"productSerialNoType": "",
"productSerialNoValue": "",
"productName": "",
"emiTxnType": "",
"emiTenure": "",
"emiInterestRate": "",
"emiMonthlyAmount": "",
"emiTotalAmount": "",
"bankOfferApplied": "false",
"bankOfferType": "",
"bankOfferAmount": "",
"subventionCreated": "false",
"subventionType": "",
"subventionOfferAmount": "",
"acquiringBank" : "ICICI",
"virtualPaymentAddress":"9650*****0@paytm", "tipAmount":"100", "totalAmount":"1000",
"statusCode": "101",
"statusMessage": "Transaction was successful"
}
|
5.
|
ConnectionCheck
|
("COM1", 115200, 0, 8, 1, 1)
|
{
"statusCode": "000",
"statusMessage": "Command Initiated Successfully"
}
|
6.
|
PrintReceipt
|
("COM1", 115200, 0, 8, 1, 1, "MID", "order1")
|
{
"merchantId": "YOUR_MID_HERE",
"orderId": "order1",
"statusCode": "000",
"statusMessage": "Command Initiated Successfully"
}
|