Appearance
Express Docs / MollieApplePayOptions
Interface: MollieApplePayOptions
Defined in: src/types.ts:698
SDK-level options for the Mollie Apple Pay provider (Mollie:ApplePay).
Remarks
Uses the W3C Payment Request API with a pre-fetched Apple Pay session from Mollie. totalAmount and currencyCode are required.
Example
ts
const mollieApplePay: ProviderButtonConfig<'Mollie:ApplePay'> = {
providerProtocolType: 'Mollie',
paymentMethodType: 'ApplePay',
container: '#mollie-applepay-container',
style: { buttonstyle: 'black', type: 'buy' },
options: {
totalAmount: 1000,
currencyCode: 'EUR',
countryCode: 'DE',
},
};Extends
CheckoutFlowFlags
Properties
countryCode?
optionalcountryCode?:string
Defined in: src/types.ts:706
ISO 3166-1 alpha-2 country code for the merchant (e.g. 'US', 'DE'). Defaults to 'DE'.
currencyCode
currencyCode:
string
Defined in: src/types.ts:704
ISO 4217 currency code (e.g. 'EUR', 'USD').
isBillingCustomerDataRequired?
optionalisBillingCustomerDataRequired?:boolean
Defined in: src/types.ts:733
When true, the integrator's backend already supplies the customer's billing address and Apple Pay should not request it from the payer. When false or unset (default), Apple Pay collects the billing address.
Maps (inverted) to the W3C Payment Request requestBillingAddress option: requestBillingAddress = !isBillingCustomerDataRequired.
Default Value
false — Apple Pay collects billing address
Overrides
CheckoutFlowFlags.isBillingCustomerDataRequired
isShippingCustomerDataRequired?
optionalisShippingCustomerDataRequired?:boolean
Defined in: src/types.ts:747
When true, the integrator's backend already supplies the customer's shipping address and Apple Pay should not request it from the payer. When false or unset (default), Apple Pay collects the shipping address and payer contact (name, email, phone).
Maps (inverted) to the W3C Payment Request requestShipping option: requestShipping = !isShippingCustomerDataRequired. Payer contact fields (name, email, phone) are collected automatically when either address is collected by Apple Pay.
Default Value
false — Apple Pay collects shipping address and payer contact
Overrides
CheckoutFlowFlags.isShippingCustomerDataRequired
merchantDisplayName?
optionalmerchantDisplayName?:string
Defined in: src/types.ts:722
Optional merchant name shown as the payment line item label in the Apple Pay sheet.
Remarks
When set here, this value takes precedence over the displayName returned in the Mollie Apple Pay session. Use this to override the server-side default on a per-integration basis without changing the ProviderAccount setup.
If omitted, the SDK falls back to the session's displayName and, as a last resort, to 'Merchant'.
nativeOnly?
optionalnativeOnly?:boolean
Defined in: src/types.ts:770
If true, the Apple Pay button is only rendered when the browser supports Apple Pay natively (i.e. Safari on macOS/iOS). In non-native browsers the provider skips loading the Apple Pay JS polyfill and the render promise rejects with an APPLE_PAY_UNAVAILABLE error which is routed to the integrator's global onError handler.
Disables the cross-device "Scan with iPhone" QR handoff that the polyfill enables on Chrome/Edge/Firefox.
Default Value
false
pspAutoCaptureEnabled
pspAutoCaptureEnabled:
boolean
Defined in: src/types.ts:262
When true (default), the payment is captured immediately after authorization. When false, the payment is authorized only and must be captured separately.
Remarks
This flag is mapped to the provider-native concept:
- PayPal / Braintree / Adyen PayPal →
intent: 'capture'(true) /'authorize'(false) - Stripe →
captureMethod: 'automatic'(true) /'manual'(false)
Inherited from
CheckoutFlowFlags.pspAutoCaptureEnabled
supportedNetworks?
optionalsupportedNetworks?:string[]
Defined in: src/types.ts:708
Card networks accepted by the merchant.
Default Value
['amex', 'discover', 'maestro', 'masterCard', 'visa', 'vPay']
supportedShippingCountries?
optionalsupportedShippingCountries?:string[]
Defined in: src/types.ts:757
List of ISO 3166-1 alpha-2 country codes to which the merchant ships. When set and non-empty, the Apple Pay sheet validates the selected shipping country against this list and displays an error if it is not included. When omitted or set to an empty array, all countries are accepted.
Example
ts
`['DE', 'AT', 'CH']` — restrict to DACH regionDefault Value
undefined — all countries accepted
totalAmount
totalAmount:
number
Defined in: src/types.ts:702
Transaction amount in minor units (e.g. 1000 = €10.00).
