PaymentInitiator
@objc(PPCOrderApplicationContextPaymentInitiator)
enum PaymentInitiator
extension OrderApplicationContext.PaymentInitiator : Equatable, Hashable, RawRepresentable
Describes the person or party who initiated or triggered the payment.
-
Payment is initiated with the active engagement of the customer. e.g. a customer checking out on a merchant website.
Declaration
Swift
case customer
-
Creates a new instance with the specified raw value.
If there is no value of the type that corresponds with the specified raw value, this initializer returns
nil
. For example:enum PaperSize: String { case A4, A5, Letter, Legal } print(PaperSize(rawValue: "Legal")) // Prints "Optional("PaperSize.Legal")" print(PaperSize(rawValue: "Tabloid")) // Prints "nil"
Declaration
Swift
init?(rawValue: Int)
-
Payment is initiated by merchant on behalf of the customer without the active engagement of customer. e.g. a merchant charging the monthly payment of a subscription to the customer.
Declaration
Swift
case merchant