OrderApplicationContext
@objc(PPCOrderApplicationContext)
@objcMembers
class OrderApplicationContext
extension OrderApplicationContext : CVarArg, CustomDebugStringConvertible, CustomStringConvertible, Encodable, Equatable, Hashable, NSObjectProtocol
A class that represents the possible values to be passed as part of the application context object. OrderApplicationContext object documentation guide
-
The possible value of network types
See moreDeclaration
Swift
@objc(PPCOrderApplicationContextNetwork) enum Networkextension OrderApplicationContext.Network : Equatable, Hashable, RawRepresentable -
Describes possible merchant-preferred payment methods.
See moreDeclaration
Swift
@objc(PPCOrderApplicationContextPayeePreferred) enum PayeePreferredextension OrderApplicationContext.PayeePreferred : Equatable, Hashable, RawRepresentable -
The customer-selected payment method on the merchant site.
Possible values are:
- PayPal
- PayPal Credit
Declaration
Swift
@objc(PPCOrderApplicationContextPayerSelected) enum PayerSelectedextension OrderApplicationContext.PayerSelected : Equatable, Hashable, RawRepresentable -
Describes the person or party who initiated or triggered the payment.
See moreDeclaration
Swift
@objc(PPCOrderApplicationContextPaymentInitiator) enum PaymentInitiatorextension OrderApplicationContext.PaymentInitiator : Equatable, Hashable, RawRepresentable -
The customer and merchant payment preferences.
See moreDeclaration
Swift
@objc(PPCOrderApplicationContextPaymentMethod) @objcMembers class PaymentMethodextension OrderApplicationContext.PaymentMethod : CVarArg, CustomDebugStringConvertible, CustomStringConvertible, Encodable, Equatable, Hashable, NSObjectProtocol -
Describes the type of payment
See moreDeclaration
Swift
@objc(PPCOrderApplicationContextPaymentType) enum PaymentTypeextension OrderApplicationContext.PaymentType : Equatable, Hashable, RawRepresentable -
Reference values used by the card network to identify a transaction.
See moreDeclaration
Swift
@objc(PPCOrderApplicationContextPreviousNetworkTransactionReference) @objcMembers class PreviousNetworkTransactionReferenceextension OrderApplicationContext.PreviousNetworkTransactionReference : CVarArg, CustomDebugStringConvertible, CustomStringConvertible, Encodable, Equatable, Hashable, NSObjectProtocol -
Shipping preference set by the merchant. Affects the ability of the payer to change their shipping information within the PayPal SDK
See moreDeclaration
Swift
@objc(PPCOrderApplicationContextShippingPreference) enum ShippingPreferenceextension OrderApplicationContext.ShippingPreference : Equatable, Hashable, RawRepresentable -
Describes the possible entry class codes
See moreDeclaration
Swift
@objc(PPCOrderApplicationContextStandardEntryClassCode) enum StandardEntryClassCodeextension OrderApplicationContext.StandardEntryClassCode : Equatable, Hashable, RawRepresentable -
Provides additional details to process a payment using a
See morepayment_sourcethat has been stored or is intended to be stored (also referred to as stored_credential or card-on-file).Declaration
Swift
@objc(PPCOrderApplicationContextStoredPaymentSource) @objcMembers class StoredPaymentSourceextension OrderApplicationContext.StoredPaymentSource : CVarArg, CustomDebugStringConvertible, CustomStringConvertible, Encodable, Equatable, Hashable, NSObjectProtocol -
Indicates if this is a first or subsequent payment using a stored payment source (also referred to as stored credential or card on file).
See moreDeclaration
Swift
@objc(PPCOrderApplicationContextUsage) enum Usageextension OrderApplicationContext.Usage : Equatable, Hashable, RawRepresentable -
Defines whether to present the customer with a Continue or Pay Now checkout flow.
See moreDeclaration
Swift
@objc(PPCOrderApplicationContextUserAction) enum UserActionextension OrderApplicationContext.UserAction : Equatable, Hashable, RawRepresentable -
The label that overrides the business name in the PayPal account on the PayPal site. Maximum length: 127.
Declaration
Swift
let brandName: String? -
The URL where the customer is redirected after the customer cancels the payment.
Declaration
Swift
let cancelUrl: String? -
init(brandName:locale: shippingPreference: userAction: paymentMethod: returnUrl: cancelUrl: storedPaymentSource: ) Undocumented
Declaration
Swift
init(brandName: String? = nil, locale: String? = nil, shippingPreference: OrderApplicationContext.ShippingPreference = .none, userAction: OrderApplicationContext.UserAction = .none, paymentMethod: OrderApplicationContext.PaymentMethod? = nil, returnUrl: String? = nil, cancelUrl: String? = nil, storedPaymentSource: OrderApplicationContext.StoredPaymentSource? = nil) -
The BCP 47-formatted locale of pages that the PayPal payment experience shows. PayPal supports a five-character code. For example, da-DK, he-IL, id-ID, ja-JP, no-NO, pt-BR, ru-RU, sv-SE, th-TH, zh-CN, zh-HK, or zh-TW.
- Minimum length: 2
- Maximum length: 10
- Pattern: ^[a-z]{2}(?:-[A-Z][a-z]{3})?(?:-(?:[A-Z]{2}))?$
Declaration
Swift
let locale: String? -
The customer and merchant payment preferences.
Declaration
Swift
let paymentMethod: OrderApplicationContext.PaymentMethod? -
The URL where the customer is redirected after the customer approves the payment.
Declaration
Swift
let returnUrl: String? -
The shipping preference
- Displays the shipping address to the customer.
- Enables the customer to choose an address on the PayPal site.
- Restricts the customer from changing the address during the payment-approval process.
Declaration
Swift
let shippingPreference: OrderApplicationContext.ShippingPreference -
Provides additional details to process a payment using a
payment_sourcethat has been stored or is intended to be stored (also referred to as stored_credential or card-on-file).Declaration
Swift
let storedPaymentSource: OrderApplicationContext.StoredPaymentSource? -
Configures a Continue or Pay Now checkout flow.
Declaration
Swift
let userAction: OrderApplicationContext.UserAction
View on GitHub
Install in Dash
OrderApplicationContext Class Reference