ODWConfiguration
@objc
public class ODWConfiguration : NSObject
Configuration parameters required for setting up ApplePay
-
The merchant ID registered with Apple
Important
ODWApplePayLauncher.present(...)will throw an error if this is an empty stringDeclaration
Swift
public let merchantId: String -
The company label that will be displayed on the ApplePay payment sheet
Important
ODWApplePayLauncher.present(...)will throw an error if this is an empty stringDeclaration
Swift
public let companyLabel: String -
The three-letter ISO 4217 currency code for the payment.
Important
ODWApplePayLauncher.present(...)will throw an error if this is not a three character stringDeclaration
Swift
public let currencyCode: String -
The merchant’s two-letter ISO 3166 country code.
Important
ODWApplePayLauncher.present(...)will throw an error if this is not a two character stringDeclaration
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.Declaration
Swift
public let fullBillingAddressRequired: Bool -
Whether Apple Pay collects and returns a phone number when processing transactions
Declaration
Swift
public let phoneNumberRequired: Bool -
Whether Apple Pay collects and returns a name when processing transactions
Declaration
Swift
public let fullNameRequired: Bool -
Whether Apple Pay collects and returns a phonetic name when processing transactions
Declaration
Swift
public let fullPhoneticNameRequired: Bool -
Whether Apple Pay collects and returns an email address when processing transactions
Declaration
Swift
public let emailRequired: Bool -
The list of card networks that are allowed for Apple Pay transactions
Declaration
Swift
public let allowedCardNetworks: [PKPaymentNetwork] -
init(merchantId:companyLabel: currencyCode: countryCode: emailRequired: phoneNumberRequired: fullNameRequired: fullPhoneticNameRequired: fullBillingAddressRequired: allowedCardNetworks: ) Initializes a new
ODWConfigurationobject with the above parametersDeclaration
Swift
@objc public init( merchantId: String, companyLabel: String, currencyCode: String = "USD", countryCode: String = "US", emailRequired: Bool = false, phoneNumberRequired: Bool = false, fullNameRequired: Bool = false, fullPhoneticNameRequired: Bool = false, fullBillingAddressRequired: Bool = false, allowedCardNetworks: [PKPaymentNetwork] = [.visa, .amex, .masterCard, .discover] )Parameters
merchantIdThe merchant ID registered with Apple
companyLabelThe company label that will be displayed on the ApplePay payment sheet
currencyCodeThe three-letter ISO 4217 currency code for the payment
countryCodeThe merchant’s two-letter ISO 3166 country code
emailRequiredWhether Apple Pay collects and returns an email address when processing transactions
phoneNumberRequiredWhether Apple Pay collects and returns a phone number when processing transactions
fullNameRequiredWhether Apple Pay collects and returns a name when processing transactions
fullPhoneticNameRequiredWhether Apple Pay collects and returns a phonetic name when processing transactions
fullBillingAddressRequiredWhether Apple Pay collects and returns a full billing address when processing transactions
allowedCardNetworksThe list of card networks that are allowed for Apple Pay transactions