ReceiptInfo

public struct ReceiptInfo

An object containing additional details about a payment

  • The amount charged initially for the payment (the bill amount). e.g. 5000 for the bill of $50.00

    Declaration

    Swift

    public let amountInCents: Int64?
  • The tip amount offered by the cardholder. e.g. 2000 for the tip of $20.00

    Declaration

    Swift

    public let tipInCents: Int?
  • The total amount charged from the cardholder (bill amount + tip amount) e.g. 7000 ($70) given the tip of $20.00 and bill of $50.00

    Declaration

    Swift

    public let finalAmountInCents: Int64?
  • The way the cardholder was charged for this payment. (e.g. card, masterpass, etc)

    Declaration

    Swift

    public let type: PaymentType?
  • The state of the transaction e.g. approved

    Declaration

    Swift

    public let state: String?
  • The description of the current transaction state. e.g. LIMIT EXCEEDED if the transaction failed because of an exceeded limit.

    Declaration

    Swift

    public let statusText: String?
  • The cardholder’s card scheme (e.g. Visa, Mastercard, Diners, etc)

    Declaration

    Swift

    public let paymentScheme: String?
  • The card number showing the first 6 numbers and the last 4. e.g. 654321 xxxx xxxx xxxx 1234

    Declaration

    Swift

    public let maskedAccountNumber: String?
  • EMV transaction authorization code

    Declaration

    Swift

    public let authorizationCode: String?
  • Yoco’s system transaction identifier.

    Declaration

    Swift

    public let transactionIdentifier: String?
  • An identifier that uniquely identifies this transaction’s authorization.

    Declaration

    Swift

    public let authorizationIdentifier: String?
  • A Unique identifier for this merchant that performed this transaction.

    Declaration

    Swift

    public let merchantIdentifier: String?
  • A Unique identifier for the terminal that performed this transaction.

    Declaration

    Swift

    public let terminalIdentifier: String?
  • How the card was presented in case of the card transaction. e.g. CONTACTLESS_ICC if the card was tapped.

    Declaration

    Swift

    public let entryMode: String?
  • The chosen EMV Application/Account for the payment.

    Declaration

    Swift

    public let applicationIdentifier: String?
  • The result showing how was the cardholder verified. e.g. ENCIPHERED_PIN_OFFLINE_AND_SIGNATURE when the pin and signature was provided to verify that this is the correct holder for this card.

    Declaration

    Swift

    public let cardholderVerificationResult: String?
  • RRN is the reference code that can be used to refer to the transaction when there’s any inquiry for this transaction.

    Declaration

    Swift

    public let retrievalReferenceNumber: String?
  • true if the Merchant receipt should be printed but otherwise false.

    Declaration

    Swift

    public let printForMerchantAndCustomer: Bool?
  • true if the cardholder is required to sign of the printed paper receipt.

    Declaration

    Swift

    public let requiresSignature: Bool?
  • Text describing what was done or must be done with respect to the cardholder signature. e.g. NOT REQUIRED if it is not required.

    Declaration

    Swift

    public let signatureText: String?