Payment
@objcMembers
public class Payment : NSObject, Codable
Holds payment result information return from the remote host.
-
The type of payment (see PaymentType).
Declaration
Swift
public private(set) var paymentType: PaymentType { get }
-
The date-time at which the transaction was processed. Represented as a date-time according to RFC 3339, section 5.6, including the relevant time zone.
Declaration
Swift
public private(set) var transactionDateTime: String { get }
-
A detailed result value (see PaymentResultCode).
Declaration
Swift
public private(set) var result: PaymentResultCode { get }
-
Details about the merchant who did the transaction.
Declaration
Swift
public private(set) var merchant: Merchant? { get }
-
The paypoint the request has been performed on.
Declaration
Swift
public private(set) var paypoint: Paypoint { get }
-
Details of the payments value and currency (see Transaction), if available.
Declaration
Swift
public private(set) var value: Transaction? { get }
-
The transaction reference defined by the merchant to uniquely identify the payment.
Declaration
Swift
public private(set) var merchantTransactionReference: String { get }
-
The transaction reference generated by the payment gateway to uniquely identify the payment.
Declaration
Swift
public private(set) var gatewayTransactionReference: String? { get }
-
The transaction sequence number.
Declaration
Swift
public private(set) var eftSequenceNumber: NSNumber? { get }
-
The retrieval reference number for the transaction.
Declaration
Swift
public private(set) var retrievalReferenceNumber: NSNumber? { get }
-
The number of the receipt.
Declaration
Swift
public private(set) var receiptNumber: NSNumber? { get }
-
A retention reminder to include on receipts.
Declaration
Swift
public private(set) var receiptRetentionReminder: String? { get }
-
A customer declaration to include on receipts.
Declaration
Swift
public private(set) var receiptCustomerDeclaration: String? { get }
-
The content of the voucher. The first 2 characters of each line a print command, followed by the text to print.
Declaration
Swift
public private(set) var taxFreeVoucher: String? { get }
-
The method by which the payment was made.
Declaration
Swift
public private(set) var paymentInstrument: ResponsePaymentInstrument? { get }
-
Used to print the debug content of the object
Declaration
Swift
public func encode(to encoder: Encoder) throws
-
Used to parse the response from the server.
Declaration
Swift
required public init(from decoder: Decoder) throws