Configuration
public struct Configuration
Apple Pay component configuration.
-
The public key used for encrypting card details.
Declaration
Swift
public var summaryItems: [PKPaymentSummaryItem]
-
The merchant identifier for apple pay.
Declaration
Swift
public var merchantIdentifier: String
-
A list of fields that you need for a billing contact in order to process the transaction. Ignored on iOS 10.*.
Declaration
Swift
public var requiredBillingContactFields: Set<PKContactField>
-
A list of fields that you need for a shipping contact in order to process the transaction. Ignored on iOS 10.*.
Declaration
Swift
public var requiredShippingContactFields: Set<PKContactField>
-
A pre-populated billing address.
Declaration
Swift
public var billingContact: PKContact?
-
The flag to toggle onboarding. If true, allow the shopper to add cards to Apple Pay if non exists yet. If false, then Apple Pay is disabled if the shopper doesn’t have supported cards on Apple Pay wallet.
Declaration
Swift
public var allowOnboarding: Bool
-
init(summaryItems:
merchantIdentifier: requiredBillingContactFields: requiredShippingContactFields: billingContact: allowOnboarding: ) Initializes the configuration.
Declaration
Swift
public init(summaryItems: [PKPaymentSummaryItem], merchantIdentifier: String, requiredBillingContactFields: Set<PKContactField> = [], requiredShippingContactFields: Set<PKContactField> = [], billingContact: PKContact? = nil, allowOnboarding: Bool = false)
Parameters
summaryItems
The line items for this payment.
merchantIdentifier
The merchant identifier.
requiredBillingContactFields
A list of fields that you need for a billing contact in order to process the transaction. Ignored on iOS 10.*.
requiredShippingContactFields
The excluded card brands.
requiredShippingContactFields
The excluded card brands.
billingContact
A pre-populated billing address.
allowOnboarding
The flag to toggle onboarding. If true, allow the shopper to add cards to Apple Pay if non exists yet. If false, then Apple Pay is disabled if the shopper doesn’t have supported cards on Apple Pay wallet. Default is false.