TransactionDetail

Request parameters for starting a transaction or refunding a transaction.

Copy
Copied
public struct TransactionDetail: @unchecked Sendable {

  public let amount: String

  public let referenceNumber: String

  public let transactionID: String

  public let posInformation: TyroTapToPaySDK.POSInformation

  public init(
    amount: String,
    referenceNumber: String,
    transactionID: String,
    posInformation: TyroTapToPaySDK.POSInformation
  )
}

Parameters

amount
required
String

The transaction amount in cents e.g. '1325' = $13.25

referenceNumber
required
String

The identifier for the transaction and MUST be unique.

transactionID
required
String

The transaction ID, only set if the payment type is a refund.

posInformation
required
PosInformation

Information about the POS.

Copyright © Tyro Payments 2019-2024. All right reserved.