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.usdDeclaration
Swift
public let currencyCode: OPCurrencyCode -
A two-character country code for the vendor that will be processing transactions Default value is
USDeclaration
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 isfalseDeclaration
Swift
public let fullBillingAddressRequired: Bool -
Whether Apple Pay collects and returns a phone number when processing transactions Default value is
falseDeclaration
Swift
public let phoneNumberRequired: Bool -
Whether Apple Pay collects and returns a name when processing transactions Default value is
falseDeclaration
Swift
public let fullNameRequired: Bool -
Whether Apple Pay collects and returns an email address when processing transactions Default value is
falseDeclaration
Swift
public let emailRequired: Bool -
Whether Apple Pay collects and returns a phonetic name when processing transactions Default value is
falseDeclaration
Swift
public let fullPhoneticNameRequired: Bool -
init(merchantId:companyLabel: currencyCode: countryCode: emailRequired: phoneNumberRequired: fullNameRequired: fullBillingAddressRequired: fullPhoneticNameRequired: ) 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, fullPhoneticNameRequired: Bool = false )