PaymentType
@objc
public enum PaymentType : Int, Codable
The type of payment.
-
Authorise and settle a payment from a customer for goods/services.
Declaration
Swift
case sale = 0
-
Authorise and settle a payment to a customer for the return of goods/services.
Declaration
Swift
case refund
-
Authorise a payment from a customer, but settle the payment separately using the payment/settle channel.
Declaration
Swift
case preAuth
-
Check and retrieve details of the customer’s card, without taking a payment.
Declaration
Swift
case checkCard
-
Check and retrieve details of the customer’s card, and wait for the payment request on this card.
Declaration
Swift
case checkCardPayment
-
The cancellation of a previously requested
Declaration
Swift
case cancel
-
The settlement of a previously requested pre-auth.
Declaration
Swift
case settle
-
Used to parse the request to the server.
Declaration
Swift
public func encode(to encoder: Encoder) throws
-
Used to parse the response from the server.
Declaration
Swift
public init(from decoder: Decoder) throws