PaymentResult

public struct PaymentResult

Undocumented

  • The result of the payment, to get more information about the outcome of the payment.

    Declaration

    Swift

    public let result: ResultCode
  • 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 currency used for this payment.

    Declaration

    Swift

    public let currency: SupportedCurrency
  • The payment method used for this payment.

    Declaration

    Swift

    public let paymentType: PaymentType?
  • The unique identifier of this payment.

    Declaration

    Swift

    public let transactionID: String
  • The details of the staff member who initiated the payment, if any.

    Declaration

    Swift

    public let staffMember: YocoStaff?
  • Data that you may have passed to the YocoSDK at the start of the payment.

    Declaration

    Swift

    public let userInfo: [AnyHashable : Any]?
  • Meta data that may have been sent with the transaction to the server that you would recieve as part of a webhook.

    Declaration

    Swift

    public let metaData: [String : String]?
  • The data that necessary for processing the receipt.

    Declaration

    Swift

    public let receiptInfo: ReceiptInfo?