1. |
Sale |
("COM1", 115200, 0, 8, 1, 1, "MID","order1" ,"All", "10000" , "FOOD:2|GIFT:6", "extendinfo://values?productValidationValue=12764874894894898&merchantTxnId=82938938983&caNumber=34567777&brandId=1707&modelId=43LF513A&ean=6666abCD&phoneNumber=9824871264&invoiceNumber=12347877&imei=199888887&emiTenures=3,6","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": "MID",
"orderId": "order1",
"amount": "10000",
"statusCode": "001",
"statusMessage": "Process Transaction has been Initiated",
"extendInfo": "extendinfo://values?productValidationValue=12764874894894898&merchantTxnId=82938938983&caNumber=34567777&brandId=1707&modelId=43LF513A&ean=6666abCD&phoneNumber=9824871264&invoiceNumber=12347877&imei=199888887&emiTenures=3,6",
"printInfo": "printInfo://values?merchantTxnId=82938938983&caNumber=34567777&billNumber=xyz123"
} |
|
If StatusCheckOnSaleRequestEnabled is Enabled in Configurations on Sale request
(Since Wired ECR library is configuration-driven, if merchant has enabled this "StatusCheckOnSaleRequestEnabled" flag in configurations then on Sale Request itself, this library will start checking the status of the transaction after 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))
|
|
{
"merchantId": "MID",
"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",
"issuingBankId": "",
"amount": "10000",
"txnType": "CARD",
"invoiceNumber": "000002",
"extendInfo": "extendinfo://values?productValidationValue=12764874894894898&merchantTxnId=82938938983&caNumber=34567777&brandId=1707&modelId=43LF513A&ean=6666abCD&phoneNumber=9824871264&invoiceNumber=12347877&imei=199888887&emiTenures=3,6",
"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": "",
"bankOfferCampaignId": "",
"bankOfferType2": "",
"bankOfferAmount2": "",
"bankOfferCampaignId2": "",
"bankOfferType3": "",
"bankOfferAmount3": "",
"bankOfferCampaignId3": "",
"bankOfferType4": "",
"bankOfferAmount4": "",
"bankOfferCampaignId4": "",
"subventionCreated": "false",
"subventionType": "",
"subventionOfferAmount": "",
"subventionCampaignId":"",
"acquiringBank" : "ICICI",
"virtualPaymentAddress":"9650*****0@paytm",
"tipAmount":"100",
"totalAmount":"1000",
"responseExtendInfo": "responseExtendInfo://values?productPrice=880000&originalAmount=1000000&protectionPlanAmount=120000&protectionPlanDuration=1%20YEAR&protectionPlanProvider=OneAssist&protectionPlanName=ADLD&protectionPlanMembershipId=",
"statusCode": "101",
"statusMessage": "Transaction was successful"
}
|
2. |
Void |
("COM1", 115200, 0, 8, 1, 1, "MID", "order1", "extendinfo://values?merchantTxnId=82938938983&caNumber=34567777") |
{
"merchantId": "MID",
"orderId": "order1",
"statusCode": "000",
"statusMessage": "Command Initiated Successfully"
} |
3. |
Cancel |
("COM1", 115200, 0, 8, 1, 1, "MID", "order1") |
{
"merchantId": "MID",
"orderId": "order1",
"statusCode": "000",
"statusMessage": "Command Initiated Successfully"
} |
4. |
Status |
("COM1", 115200, 0, 8, 1, 1,"MID", "order1" ) |
{
"merchantId": "MID",
"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",
"version": "1.1.0"
}
|
6. |
PrintReceipt |
("COM1", 115200, 0, 8, 1, 1, "MID" , "order1") |
{
"merchantId": "MID",
"orderId": "order1",
"statusCode": "000",
"statusMessage": "Command Initiated Successfully"
} |
7. |
PreAuth |
("COM1", 115200, 0, 8, 1, 1, "MID","order1" ,"All", "10000" , "FOOD:2|GIFT:6", "extendinfo://values?productValidationValue=12764874894894898&merchantTxnId=82938938983&caNumber=34567777&brandId=1707&modelId=43LF513A&ean=6666abCD&phoneNumber=9824871264&invoiceNumber=12347877&imei=199888887&emiTenures=3,6","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", "PREAUTH", "10000") |
{
"merchantId": "MID",
"orderId": "order1",
"amount": "10000",
"statusCode": "001",
"statusMessage": "Process Transaction has been Initiated",
"extendInfo": "extendinfo://values?productValidationValue=12764874894894898&merchantTxnId=82938938983&caNumber=34567777&brandId=1707&modelId=43LF513A&ean=6666abCD&phoneNumber=9824871264&invoiceNumber=12347877&imei=199888887&emiTenures=3,6",
"printInfo": "printInfo://values?merchantTxnId=82938938983&caNumber=34567777&billNumber=xyz123",
"preAuthTxnType" : "PREAUTH"
}
|
|
If StatusCheckOnSaleRequestEnabled is Enabled in Configurations on Sale request
(Since Wired ECR library is configuration-driven, if merchant has enabled this "StatusCheckOnSaleRequestEnabled" flag in configurations then on Sale Request itself, this library will start checking the status of the transaction after 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))
|
|
{
"merchantId": "MID",
"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",
"issuingBankId": "",
"amount": "10000",
"txnType": "CARD",
"invoiceNumber": "000002",
"extendInfo": "extendinfo://values?productValidationValue=12764874894894898&merchantTxnId=82938938983&caNumber=34567777&brandId=1707&modelId=43LF513A&ean=6666abCD&phoneNumber=9824871264&invoiceNumber=12347877&imei=199888887&emiTenures=3,6",
"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",
"acquiringBank" : "ICICI",
"preAuthTxnType" "PREAUTH"
"statusCode": "101",
"statusMessage": "Transaction was successful"
}
|
8. |
PreAuthStatus |
("COM1", 115200, 0, 8, 1, 1,"MID", "order1", "CAPTURE" ) |
{
"merchantId": "MID",
"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",
"issuingBankId": "",
"amount": "10000",
"txnType": "CARD",
"invoiceNumber": "000002",
"extendInfo": "extendinfo://values?productValidationValue=12764874894894898&merchantTxnId=82938938983&caNumber=34567777&brandId=1707&modelId=43LF513A&ean=6666abCD&phoneNumber=9824871264&invoiceNumber=12347877&imei=199888887&emiTenures=3,6",
"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",
"acquiringBank" : "ICICI",
"preAuthTxnType" "PREAUTH"
"statusCode": "101",
"statusMessage": "Transaction was successful"
} |
9. |
ReadCard |
("COM1", 115200, 0, 8, 1, 1, "MID" , "order1", "closed" , "1" , "MF")
|
{
"merchantId": "MID",
"orderId": "order1",
"statusCode": "001",
"statusMessage": "Process Transaction has been Initiated"
} |
|
If ReadCardStatusCheckOnRequestEnabled is Enabled in Configurations on ReadCard request
(Since Wired ECR library is configuration-driven, if merchant has enabled this "ReadCardStatusCheckOnRequestEnabled" flag in configurations then on ReadCard Request itself, this library will start checking the status of the card data after 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 request timeout is configurable))
|
|
{
"merchantId": "MID",
"orderId": "order1",
"cardNo": "E44F8D09",
"cardBlockValue": "0001111111110003",
"statusCode": "101",
"statusMessage": "Transaction was successful"
} |
10. |
UpdateCard |
("COM1", 115200, 0, 8, 1, 1, "MID" , "order1", "closed" , "0001111111110005" ,"1" , "MF") |
{
"merchantId": "MID",
"orderId": "order1",
"statusCode": "001",
"statusMessage": "Process Transaction has been Initiated"
} |
|
If UpdateCardStatusCheckOnRequestEnabled is Enabled in Configurations on UpdateCard request
(Since Wired ECR library is configuration-driven, if merchant has enabled this "UpdateCardStatusCheckOnRequestEnabled" flag in configurations then on UpdateCard Request itself, this library will start checking the status of the card data after 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 request timeout is configurable))
|
|
{
"merchantId": "MID",
"orderId": "order1",
"cardNo": "E44F8D09",
"statusCode": "101",
"statusMessage": "Transaction was successful"
} |