OrderRequest
@objc(PPCOrderRequest)
@objcMembers
class OrderRequest
extension OrderRequest : CVarArg, CustomDebugStringConvertible, CustomStringConvertible, Encodable, Equatable, Hashable, NSObjectProtocol
The order request object is used to format the orderRequest
for the CreateOrderAction
Create order documentation
Note
This class is for use exclusively with the order v2 API-
Customize the payer experience during the approval process for the payment with PayPal.
Declaration
Swift
let applicationContext: OrderApplicationContext?
-
Undocumented
Declaration
Swift
init(intent: OrderIntent, purchaseUnits: [PurchaseUnit], processingInstruction: ProcessingInstruction = .none, payer: OrderPayer? = nil, applicationContext: OrderApplicationContext? = nil)
-
The intent to either capture payment immediately or authorize a payment for an order after order creation.
Declaration
Swift
let intent: OrderIntent
-
The customer who approves and pays for the order. The customer is also known as the payer.
Declaration
Swift
let payer: OrderPayer?
-
The instruction to process an order.
Declaration
Swift
let processingInstruction: ProcessingInstruction?
-
An array of purchase units. Each purchase unit establishes a contract between a payer and the payee. Each purchase unit represents either a full or partial order that the payer intends to purchase from the payee.
Declaration
Swift
let purchaseUnits: [PurchaseUnit]