{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-docs/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["json-schema"]},"type":"markdown"},"seo":{"title":"TransactionOutcome","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":"transactionoutcome","__idx":0},"children":["TransactionOutcome"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The result of a transaction or refund with details"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"swift","header":{"controls":{"copy":{}}},"source":"public struct TransactionOutcome : Equatable, Sendable {\n\n    public let amount: String\n\n    public let surcharge: String\n\n    public let approvalCode: String\n\n    public let cardType: String?\n\n    public let elidedPan: String\n\n    public let isSignatureRequired: Bool\n\n    public let merchantCategoryCode: String\n\n    public let mid: String\n\n    public let retrievalReferenceNumber: String\n\n    public let statusCode: String\n\n    public let statusMessage: String\n\n    public let tid: String\n\n    public let transactionDate: String\n\n    public let transactionID: String\n\n    public let transactionReference: String\n\n    public let transactionTime: String\n\n    public let customerReceipt: String\n}\n","lang":"swift"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"parameters","__idx":1},"children":["Parameters"]},{"$$mdtype":"Tag","name":"JsonSchema","attributes":{"schema":{"type":"object","properties":{"amount":{"type":"String","description":"The total authorised transaction amount in cents."},"surcharge":{"type":"String","description":"The surcharge amount in cents, it will be `nil` if surcharge is unsupported."},"approvalCode":{"type":"String"},"cardType":{"type":"String","description":"The type of card used in the transaction","enum":["Visa","Mastercard","AMEX","JCB","UnionPay","MyDebit","Diners","TPN","VCCS (NAPAS)","Discover","EFTPOS"]},"elidedPan":{"type":"String","description":"The elided string representing the PAN for the card used in the transaction. The last 4 digits are available"},"isSignatureRequired":{"type":"Bool","description":"Whether or not the transaction requires a signature"},"merchantCategoryCode":{"type":"String"},"mid":{"type":"String","description":"The merchant identifier (MID) of the transaction."},"retrievalReferenceNumber":{"type":"String"},"statusCode":{"type":"String","enum":["APPROVED","DECLINED","REVERSED"]},"statusMessage":{"type":"String"},"tid":{"type":"String","description":"The terminal identifier (TID) of the transaction."},"transactionDate":{"type":"String"},"transactionID":{"type":"String"},"transactionReference":{"type":"String"},"transactionTime":{"type":"String"},"customerReceipt":{"type":"String","description":"Formatted receipt with transaction details"}},"required":["amount","approvalCode","elidedPan","isSignatureRequired","merchantCategoryCode","mid","retrievalReferenceNumber","statusCode","statusMessage","tid","transactionDate","transactionID","transactionReference","transactionTime","customerReceipt"]},"options":{"schemaExpansionLevel":1},"schemaResolved":{"openapi":"3.1.0","components":{"schemas":{"__root":{"type":"object","properties":{"amount":{"type":"String","description":"The total authorised transaction amount in cents."},"surcharge":{"type":"String","description":"The surcharge amount in cents, it will be `nil` if surcharge is unsupported."},"approvalCode":{"type":"String"},"cardType":{"type":"String","description":"The type of card used in the transaction","enum":["Visa","Mastercard","AMEX","JCB","UnionPay","MyDebit","Diners","TPN","VCCS (NAPAS)","Discover","EFTPOS"]},"elidedPan":{"type":"String","description":"The elided string representing the PAN for the card used in the transaction. The last 4 digits are available"},"isSignatureRequired":{"type":"Bool","description":"Whether or not the transaction requires a signature"},"merchantCategoryCode":{"type":"String"},"mid":{"type":"String","description":"The merchant identifier (MID) of the transaction."},"retrievalReferenceNumber":{"type":"String"},"statusCode":{"type":"String","enum":["APPROVED","DECLINED","REVERSED"]},"statusMessage":{"type":"String"},"tid":{"type":"String","description":"The terminal identifier (TID) of the transaction."},"transactionDate":{"type":"String"},"transactionID":{"type":"String"},"transactionReference":{"type":"String"},"transactionTime":{"type":"String"},"customerReceipt":{"type":"String","description":"Formatted receipt with transaction details"}},"required":["amount","approvalCode","elidedPan","isSignatureRequired","merchantCategoryCode","mid","retrievalReferenceNumber","statusCode","statusMessage","tid","transactionDate","transactionID","transactionReference","transactionTime","customerReceipt"]}}}},"schemaResolvedErrors":[]},"children":[]}]},"headings":[{"value":"TransactionOutcome","id":"transactionoutcome","depth":1},{"value":"Parameters","id":"parameters","depth":2}],"frontmatter":{"title":"Transaction Detail","seo":{"title":"TransactionOutcome"}},"lastModified":"2026-09-02T01:02:13.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/docs/in-person-payments/tap-to-pay/ios/sdk/transaction-outcome","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}