PCFPaymentMethod
public struct PCFPaymentMethod: PaymentMethod, Decodable
Method to pay for an order.
-
The payment method type.
Declaration
Swift
public let type: String
-
The type used to represent this object’s payment object.
Declaration
Swift
public typealias PaymentObjectType = PCFPaymentObject
-
The payment object used to perform the payment.
Declaration
Swift
public let paymentObject: PaymentObjectType
-
Initializes a payment method.
- Parameters:
- type: The payment method type to use.
- paymentObject: The payment object to use.
Declaration
Swift
public init(type: String, paymentObject: PaymentObjectType)
Parameters
type
The payment method type to use.
paymentObject
The payment object to use.
- Parameters:
-
Initializes a payment method.
- Parameters:
- type: The payment method type to use.
- paymentObject: The payment object to use.
Declaration
Swift
public init?(json: JSON)
Parameters
json
JSON representation of object.
Return Value
New instance when JSON parsing successful, false otherwise.
- Parameters: