Usage

@objc(PPCOrderApplicationContextUsage)
enum Usage
extension OrderApplicationContext.Usage : Equatable, Hashable, RawRepresentable

Indicates if this is a first or subsequent payment using a stored payment source (also referred to as stored credential or card on file).

  • Indicates that PayPal will derive the value of FIRST or SUBSEQUENT based on data available to PayPal.

    Declaration

    Swift

    case derived
  • Indicates the Initial/First payment with a payment_source that is intended to be stored upon successful processing of the payment.

    Declaration

    Swift

    case first
  • 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
  • Indicates a payment using a stored payment_source which has been successfully used previously for a payment.

    Declaration

    Swift

    case subsequent