PaymentType

@objc(PPCOrderApplicationContextPaymentType)
enum PaymentType
extension OrderApplicationContext.PaymentType : Equatable, Hashable, RawRepresentable

Describes the type of payment

  • 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)
  • One Time payment such as online purchase or donation. (e.g. Checkout with one-click).

    Declaration

    Swift

    case oneTime
  • Payment which is part of a series of payments with fixed or variable amounts, following a fixed time interval. (e.g. Subscription payments).

    Declaration

    Swift

    case recurring
  • Payment which is part of a series of payments that occur on a non-fixed schedule and/or have variable amounts. (e.g. Account Topup payments).

    Declaration

    Swift

    case unscheduled