On the onActivityResult(int requestCode, int resultCode, Intent data) The Intent data will contain the return value as extra all in String value. If there is a problem with the data sent to the application, an error code will be sent back into the TERMINALERRORCODE extraData, other wise, RSPCODE will be the response code from the switch.
Error Codes
Value of the error code if application reject:
| Error code value | Description |
|---|---|
| -1 | API extra data is missing |
-2 | Amount or the Invoice sent is invalid |
-3 | Transaction type is invalid |
-5 | Invoice number is already voided |
-8 | Battery is too low (less than 8%) |
-9 | Original amount invalid |
-10 | Tip amount invalid |
-11 | DataCandy transaction |
-12 | Network error |
-14 | Transaction didn’t finish as expected, all data will still be return of the transaction status if any. For example a transaction can be approved and for some reason didn’t end properly. The intent result will contain “TERMINALERRORCODE=-14” and “RSPCODE=000” |
-15 | Termlink not installed |
-16 | Transaction in progress |
-17 | Idempotency re-use |
-18 | Idempotency waiting for response |
-100 | BroadPos error, not able to connect to termlink app |
120 | Terminal is block and cannot perform a transaction. A host download is needed most likely |
Extra Data
List of extra data receive:
Extra data on activity result | Description | Note |
|---|---|---|
“TERMINALERRORCODE” | Terminal error code |
|
“RSPCODE” | Response code | “000” = approved “05“ = Declined empty mean it was cancelled |
“AUTHCODE” | Authorization code |
|
“BATCHNBR” | Batch number |
|
“SEQNBR” | Transaction number | UUID of the transaction number |
“INVNBR” | Invoice number |
|
"IDEMPOTENCY_KEY" | Idempotency key of the transaction | UUID as String |
“TIMESTAMP” | Timestamp |
|
“ISSUERCARDTYPE” | Issuer card type | Visa = “VISA” |
“CARDTYPE” | Cardtype (C for Credit, D for Debit) |
|
“MASKEDCARDNBR” | Masked card number |
|
“EXPDATE” | Expiration date of the card |
|
“ENTRYMODE” | Entry mode | “D“ = EMV Contact |
“APPLABEL” | Application label use. |
|
“AID” | Application identification number |
|
“TVR” | Terminal verification result |
|
“TSI” | Transaction Status Indicator |
|
“CVM” | CVM result |
|
“ARQC” | Tag 9f26 application cryptogram |
|
“AUTHRESULT” | Auhtorization result | -1 = null |
“ISDEBIT” | Transaction is debit or not, boolean value |
|
“ACTTYPE” | account type of the transaction, 1 for checking, 2 for saving, string value |
|
“AMOUNT” | Transaction amount |
|
“TIP” | Tip amount |
|
“CASHBACK” | Cashback amount |
|
“FEES” | Fees amount |
|
“APPVERS” | Application version |
|
“TERMID” | Terminal ID |
|
“TRXRSLTSTR” | Transaction result in String value |
|
“TRXDATE” | Transaction date |
|
“TRXTIME” | Transaction time |
|
“MERCHNAME” | Merchant name |
|
“MERCHSTRADR” | Merchant street address |
|
“MERCHCITYPROV” | Merchant city and province |
|
“EXTRADISP” | Extra data to display on receipt |
|
“CLERKID” | Clerk Id |
|
“CUSTLANG” |
| Customer language |
| Receipt as plain text that can be used to print | text |
| Training mode | True if training mode active |
| First auto settle time set in payment app. Null if no time is set. | The time is in milliseconds, use it to get the hour and minutes of the settlement time. |
Additional values from the settlement transaction only:
Extra data on activity result | Description |
|---|---|
“BATCHNBR” | Settlement batch number |
“SETTPREVAMOUNT” | Settlement previous batch settled amount |
“SETTRESPCODE” | Settlement response code |
“SETTAMOUNT” | Settlement total amount |
“SETTDATETIME” | Settlement date time |
“SETTCOUNT” | Settlement total count |
“SETTAMEXCOUNT” | Settlement American Express count |
“SETTAMEXTOTAL” | Settlement American Express total amount |
“SETTDISCCOUNT” | Settlement Discover count |
“SETTDISCTOTAL” | Settlement Discover total amount |
“SETTJCBCOUNT” | Settlement JCB count |
“SETTJCBTOTAL” | Settlement JCB total amount |
“SETTINTERACCOUNT” | Settlement Interac count |
“SETTINTERACTOTAL” | Settlement Interac total amount |
“SETTMASTERCOUNT” | Settlement MasterCard count |
“SETTMASTERTOTAL” | Settlement MasterCard total amount |
“SETTVISACOUNT” | Settlement Visa count |
“SETTVISATOTAL” | Settlement Visa total amount |