ProcessingInstruction

@objc(PPCOrderProcessingInstruction)
enum ProcessingInstruction
extension ProcessingInstruction : Equatable, Hashable, RawRepresentable

An enum of the possible values to be passed as the instruction to process an order. Possible vales are: ORDER_SAVED_EXPLICITLY, ORDER_SAVED_ON_BUYER_APPROVAL, ORDER_COMPLETE_ON_PAYMENT_APPROVAL, NO_INSTRUCTION Processing instruction enum documentation guide

  • 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)
  • The API caller intends to authorize v2/checkout/orders/id/authorize or capture v2/checkout/orders/id/capture after the payer approves the order.

    Declaration

    Swift

    case noInstruction
  • Undocumented

    Declaration

    Swift

    case none
  • API Caller expects the Order to be auto completed (i.e. for PayPal to authorize or capture depending on the intent) on completion of payer approval. This option is not relevant for payment_source that typically do not require a payer approval or interaction. This option is currently only available for the following payment_source: Alipay, Bancontact, BLIK, eps, giropay, Multibanco, MyBank, P24, PayU, POLi, Sofort, Trustly, TrustPay, Verkkopankki, WeChat Pay

    Declaration

    Swift

    case orderCompleteOnPaymentApproval
  • The API caller saves the order for future payment processing by making an explicit v2/checkout/orders/id/save call after the payer approves the order.

    Declaration

    Swift

    case orderSavedExplicitly
  • PayPal implicitly saves the order on behalf of the API caller after the payer approves the order. Note that this option is not currently supported.

    Declaration

    Swift

    case orderSavedOnBuyerApproval