{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-docs/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["json-schema"]},"type":"markdown"},"seo":{"title":"TransactionResult","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":["openapi"],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"transactionresult","__idx":0},"children":["TransactionResult"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The outcome of the transaction."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"kotlin","header":{"controls":{"copy":{}}},"source":"data class TransactionResult(\n    val status: TransactionStatus,\n    val detail: TransactionDetail? = null,\n    val errorMessage: String? = null\n)\n","lang":"kotlin"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"parameters","__idx":1},"children":["Parameters"]},{"$$mdtype":"Tag","name":"JsonSchema","attributes":{"schema":{"type":"object","properties":{"status":{"type":"TransactionStatus","description":"The status of the transaction.","enum":["TXN_SUCCESS","TXN_DECLINED","TXN_FAILED","TXN_NO_APP_ERROR","TXN_FAILED_ALLOW_FALLBACK","TXN_CARD_EXPIRED","TXN_ONLINE_ERROR","TXN_CANCELLED","TXN_TIMEOUT","TXN_CARD_ERROR","TXN_REQUIRE_CDCVM","TXN_PERMISSIONS_ERROR","TXN_VERIFY_CONNECTION_SERVER_ERROR","TXN_VERIFY_CONNECTION_TYRO_ERROR","TXN_VERIFY_CONNECTION_REJECTED","TXN_UNKNOWN_ERROR"]},"detail":{"type":"TransactionDetail","description":"The details of the transaction."},"errorMessage":{"type":"String","description":"The error message if available."}},"required":["status"]},"options":{"schemaExpansionLevel":1},"schemaResolved":{"openapi":"3.1.0","components":{"schemas":{"__root":{"type":"object","properties":{"status":{"type":"TransactionStatus","description":"The status of the transaction.","enum":["TXN_SUCCESS","TXN_DECLINED","TXN_FAILED","TXN_NO_APP_ERROR","TXN_FAILED_ALLOW_FALLBACK","TXN_CARD_EXPIRED","TXN_ONLINE_ERROR","TXN_CANCELLED","TXN_TIMEOUT","TXN_CARD_ERROR","TXN_REQUIRE_CDCVM","TXN_PERMISSIONS_ERROR","TXN_VERIFY_CONNECTION_SERVER_ERROR","TXN_VERIFY_CONNECTION_TYRO_ERROR","TXN_VERIFY_CONNECTION_REJECTED","TXN_UNKNOWN_ERROR"]},"detail":{"type":"TransactionDetail","description":"The details of the transaction."},"errorMessage":{"type":"String","description":"The error message if available."}},"required":["status"]}}}},"schemaResolvedErrors":[]},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"transactiondetail","__idx":2},"children":["TransactionDetail"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Information about the transaction."]},{"$$mdtype":"Tag","name":"JsonSchema","attributes":{"schema":{"type":"object","properties":{"statusCode":{"type":"String","description":"The status code of the transaction.","enum":["APPROVED","REVERSED","DECLINED"]},"statusMessage":{"type":"String","description":"The status message of the transaction."},"amount":{"type":"String","description":"The total authorised transaction amount in cents."},"surcharge":{"type":"String","description":"The surcharge amount in cents, it will be `null` if surcharge is not supported."},"approvalCode":{"type":"String"},"transactionID":{"type":"String"},"reference":{"type":"String","description":"Unique reference number of the transaction."},"elidedPan":{"type":"String","description":"The elided string representing the PAN for the card used in the transaction. The last 4 digits are available"},"cardType":{"type":"String","description":"The type of card used in the transaction","enum":["Visa Credit","MasterCard Credit","Amex","JCB","UnionPay","Diners","TPN","VCCS (NAPAS)","Discover","EFTPOS","Visa Debit","MasterCard Debit"]},"mid":{"type":"String","description":"The merchant identifier (MID) of the transaction."},"tid":{"type":"String","description":"The terminal identifier (TID) of the transaction."},"retrievalReferenceNumber":{"type":"String"},"transactionReference":{"type":"String"},"transactionDate":{"type":"String"},"transactionTime":{"type":"String"},"customerReceipt":{"type":"String"}}},"options":{"schemaExpansionLevel":1},"schemaResolved":{"openapi":"3.1.0","components":{"schemas":{"__root":{"type":"object","properties":{"statusCode":{"type":"String","description":"The status code of the transaction.","enum":["APPROVED","REVERSED","DECLINED"]},"statusMessage":{"type":"String","description":"The status message of the transaction."},"amount":{"type":"String","description":"The total authorised transaction amount in cents."},"surcharge":{"type":"String","description":"The surcharge amount in cents, it will be `null` if surcharge is not supported."},"approvalCode":{"type":"String"},"transactionID":{"type":"String"},"reference":{"type":"String","description":"Unique reference number of the transaction."},"elidedPan":{"type":"String","description":"The elided string representing the PAN for the card used in the transaction. The last 4 digits are available"},"cardType":{"type":"String","description":"The type of card used in the transaction","enum":["Visa Credit","MasterCard Credit","Amex","JCB","UnionPay","Diners","TPN","VCCS (NAPAS)","Discover","EFTPOS","Visa Debit","MasterCard Debit"]},"mid":{"type":"String","description":"The merchant identifier (MID) of the transaction."},"tid":{"type":"String","description":"The terminal identifier (TID) of the transaction."},"retrievalReferenceNumber":{"type":"String"},"transactionReference":{"type":"String"},"transactionDate":{"type":"String"},"transactionTime":{"type":"String"},"customerReceipt":{"type":"String"}}}}}},"schemaResolvedErrors":[]},"children":[]}]},"headings":[{"value":"TransactionResult","id":"transactionresult","depth":1},{"value":"Parameters","id":"parameters","depth":3},{"value":"TransactionDetail","id":"transactiondetail","depth":2}],"frontmatter":{"title":"TransactionEvent","seo":{"title":"TransactionResult"}},"lastModified":"2026-09-02T01:02:13.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/docs/in-person-payments/tap-to-pay/android/sdk/transaction-result","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}