UserAction
@objc(PPCOrderApplicationContextUserAction)
enum UserAction
extension OrderApplicationContext.UserAction : Equatable, Hashable, RawRepresentable
Defines whether to present the customer with a Continue or Pay Now checkout flow.
-
Use this option when the final amount is not known when the checkout flow is initiated and you want to redirect the customer to the merchant page without processing the payment.
Declaration
Swift
case `continue`
-
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)
-
Undocumented
Declaration
Swift
case none
-
Use this option when the final amount is known when the checkout is initiated and you want to process the payment immediately when the customer clicks Pay Now.
Declaration
Swift
case payNow
-
Undocumented
Declaration
Swift
var stringValue: String? { get }