ApprovalOrderIntent
@objc(PPCApprovalOrderIntent)
enum ApprovalOrderIntent
extension ApprovalOrderIntent : Equatable, Hashable, RawRepresentable
The intent of an order.
authorize
: The merchant intends to authorize a payment and place funds on hold after the customer makes a payment.capture
: The merchant intends to capture payment immediately after the customer makes a payment.order
: The merchant intends to save an order, then authorize to place funds on hold after the customer makes a payment.
-
The merchant intends to authorize a payment and place funds on hold after the customer makes a payment.
Declaration
Swift
case authorize
-
The merchant intends to capture payment immediately after the customer makes a payment.
Declaration
Swift
case capture
-
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)
-
Non mapped or empty intent
Declaration
Swift
case none
-
The merchant intends to save an order, then authorize to place funds on hold after the customer makes a payment.
Declaration
Swift
case order
-
Parse enum to String value
Declaration
Swift
var stringValue: String { get }