OPApplePayConfiguration
@objc
public class OPApplePayConfiguration : NSObject
Configuration paramaters required for setting up ApplePay
-
The merchant ID registered with Apple
Declaration
Swift
public let merchantId: String
-
The company label that will be displayed on the ApplePay payment sheet
Declaration
Swift
public let companyLabel: String
-
The currency code to use for Apple Pay transactions Default value is
OPCurrencyCode.usd
Declaration
Swift
public let currencyCode: OPCurrencyCode
-
A two-character country code for the vendor that will be processing transactions Default value is
US
Declaration
Swift
public let countryCode: String
-
Whether Apple Pay collects and returns a full billing address when processing transactions If
false
, only postal code and country code will be provided. Default value isfalse
Declaration
Swift
public let fullBillingAddressRequired: Bool
-
Whether Apple Pay collects and returns a phone number when processing transactions Default value is
false
Declaration
Swift
public let phoneNumberRequired: Bool
-
Whether Apple Pay collects and returns a name when processing transactions Default value is
false
Declaration
Swift
public let fullNameRequired: Bool
-
Whether Apple Pay collects and returns an email address when processing transactions Default value is
false
Declaration
Swift
public let emailRequired: Bool
-
init(merchantId:
companyLabel: currencyCode: countryCode: emailRequired: phoneNumberRequired: fullNameRequired: fullBillingAddressRequired: ) Declaration
Swift
@objc public init( merchantId: String, companyLabel: String, currencyCode: OPCurrencyCode = .usd, countryCode: String = "US", emailRequired: Bool = false, phoneNumberRequired: Bool = false, fullNameRequired: Bool = false, fullBillingAddressRequired: Bool = false )