Transaction Response
iPosGo! Call back the result in Demo like this. You can fetch the details.
{
{
[
"Card": { AID = A000000025010801; Label = AMEX; MaskedPan = 3767522012; },
"BaseAmt": ["Amt": "100", "Label": "Amount"],
"TxDetail": {DateNTime = 20240515191215; Tpn = 544424127175; TraceNo = 1; },
"BaseFee": ["Amt": "5", "Label": "BaseFee"],
"Tax2": ["Amt": "21", "Label": "Tax2"],
"surveyAns": "1", "Currency": "840",
"Tip": ["Amt": "20", "Label": "Tip"],
"Tax1": ["Amt": "11", "Label": "Tax1"],
"Response": {
AppCode = AXS802;
BatchNo = 63;
CardType = CREDIT;
DTxId = 03430717348412717520240515191215;
HTxId = 000000321000803;
InvoiceNo = 5;
RespCode = 00;
RespMsg = "APPROVAL AXS802 ";
Rrn = 413613500098;
TxRefNo = 034307173484;
}
]
"Date" : "03.09.2023"
}
}Payment Session Errors
enum PaymentSessionError: String {
case notAllowed = "Account not allowed."
case backgroundRequestNotAllowed = "Background request not allowed."
case unsupported = "Unsupported hardware or a problem with the device"
case osVersionNotSupported = "Please update your app to the latest iOS version."
case modelNotSupported = "Current device doesn't support NFC."
case networkError = "Please check your network settings and try again."
case networkAuthenticationError = "An authentication error occurred during the server connection."
case serviceConnectionError = "Internal service is unavailable."
case notReady = "Please try the session again to resolve the issue."
case emptyReaderToken = "The token is empty, making it invalid."
case prepareExpired = "Please reinitiate the session to try again"
case tokenExpired = "Token Expired."
case readerMemoryFull = "The card reader is busy."
case accountNotLinked = "Accept the Terms and Conditions using a valid Apple ID."
case accountAlreadyLinked = "Terms and Conditions have already been accepted."
case accountLinkingFailed = "The system couldn't link or relink the merchant using the provided Apple ID."
case accountLinkingRequiresiCloudSignIn = "Please accept the Terms and Conditions on your device while signed into iCloud"
case accountLinkingCancelled = "The linking or relinking operation has been canceled."
case merchantBlocked = "The merchant is blocked"
case invalidMerchant = "The merchant is invalid or unknown"
case somethingWentWrong = ""
}Card Reader Session Errors
enum CardReaderSessionError: String {
case cardReadFailed = "The reader was unable to read a card"
case invalidAmount = "Amount must be positive and contain less than 10 digits."
case invalidCurrencyCode = "Currency code in the request must follow the ISO 4217 standard."
case nfcDisabled = "The user needs to enable their NFC"
case noReaderSession = "No reader session is available or the session isn't ready."
case passcodeDisabled = "Passcode disabled. Please set a security passcode on your device."
case paymentCardDeclined = "The payment card declined the transaction."
case paymentReadFailed = "An internal failure prevented the read operation."
case pinCancelled = "The current PIN capture was canceled, thereby canceling any ongoing read operation."
case pinNotAllowed = "The time window for capturing a PIN after a card read has expired."
case pinEntryFailed = "An error occurred when capturing the PIN."
case pinEntryTimeout = "The ongoing PIN capture was not completed within the given time."
case pinTokenInvalid = "An error that indicates an invalid PIN token."
case readFromBackgroundError = "Read operations aren't allowed when an app is running in the background."
case readNotAllowed = "This error usually occurs when there's an entitlement issue."
case readNotAllowedDuringCall = "Read operations aren't allowed during a phone call."
case readerServiceConnectionError = "The session wasn't able to connect the system UI or other services"
case readerServiceError = "Reader service internal state issue occurred."
case readerSessionAuthenticationError = "An authentication error occurred while refreshing reader session"
case readerSessionBusy = "The reader is busy with another session."
case readerSessionExpired = "The reader session expired and couldn't refresh due to other state changes."
case readerSessionNetworkError = "Network error occurred that prevented a reader session refresh."
case readerTokenExpired = "The configuration token for the reader session expired."
case vasReadFail = "Error occurred when reading a loyalty pass."
case invalidReaderToken = "Invalid reader token"
case prepareFailed = "Prepare session failed"
}Custom Error Messages
enum CustomErrorMessage: String {
case entitlementIssue = "Please check the tap on phone entitlement configuration."
case environmentIssue = "The token key environment is not acceptable."
case deviceSupportTapOnPay = "Device Supports Tap to Pay"
case deviceUnSupportTapOnPay = "Your current device does not support NFC."
case readerSessionCleanUp = "Reader session cleaned up"
}Transaction Response Details:
Field | Type | Description | Example |
Rrn * | string | It’s a Unique code. Just to tracks the TXN status | 123456789012 |
DTxId * | string | It’s a Unique code.Its TXN hash key | 39676826774069372420240510183738 |
Label * | string | Its Card type | VISA, AMEX |
MaskedPan * | string | Last few digit of card number | 3767522012 |
DateNTime * | string | TXN date and time | 20240515191215 |
Tpn * | string | Device unique Identifier | 544424127175 |
TraceNo * | string | Its unique code to track the TXN | 1 |
CardType * | string | Card type of the TXN | CREDIT / DEBIT |
HTxId * | string | It’s a Unique code. Just to tracks the TXN’s | 000000321000803 |
TxRefNo * | string | It’s a Unique code. Just to tracks the TXN’s | 034307173484 |
DateNTime * | string | It’s specify the date and time on TXN’s | 20240515191215 |
AppCode * | string | It’s a unique code | AXS802 |
RespCode * | string | It’s a unique code to represent a success data | 00 |
RespMsg * | string | It’s a response message for success | APPROVAL AXS802 |
BatchNo * | string | 63 | |
InvoiceNo * | string | 5 | |
AID * | string | A000000025010801 | |
Amt | string | It’s a base amount | 5.00 |
Label | string | Amount | |
Tax2 Amt | string | It’s an amount of State Tax | 21 |
Tax2 Label | string | Tax2 | |
Tax1 Amt | string | It’s an amount of Local Tax | 11 |
Tax1 Label | string | Tax1 | |
Tip Amt | string | It’s an amount of given by the Tip | 20 |
Tip Label | string | Tip | |
Fee Amt | string | It’s an amount of given by the mentioned Fee | 9 |
Fee Label | string | Custom Fee | |
surveyAns | string | 1 | |
Currency | string | It’s a currency code | 840 |
What made this section helpful for you?
What made this section unhelpful for you?
On this page
- Transaction Response