Apple Pay Button Element
createElement('applePayButton', options?)
Parameters
type
required'applePayButton'options
optionalApplePayButtonOptionsapplePayButton Element.amount
requiredAmountIndicate the amount and currency of the Payment Intent.
If the mode is set to 'recurring' and intent_id omitted, amount should be {value: '0', currency: 'Replace with payment currency'}.
currency
requiredstringvalue
requirednumbercountryCode
requiredstringappearance
optionalApplePayButtonAppearancerules
optionalApplePayButtonCssSelector.ApplePayButton
optionalCSSProperties.ApplePayButton:hover
optionalCSSPropertiesapplicationData
optionalstringThe authorization type for the card payment.
Set it to 'pre_auth' if you want to place a hold on your customer's card for more than 7 days, i.e., extend the authorization time window.
Currently it's only available when the card brand is Visa or Mastercard. autoCapture will be automatically set to false if you enable pre_auth.
'final_auth'autoCapture
optionalbooleanWhether the amount should be captured automatically upon successful payment authorization.
Set it to false if you want to place a hold on the payment method and capture the funds sometime later.
truebillingContact
optionalApplePayPaymentContactaddressLines
optionalstring[]administrativeArea
optionalstringcountry
optionalstringcountryCode
optionalstringemailAddress
optionalstringfamilyName
optionalstringgivenName
optionalstringlocality
optionalstringphoneNumber
optionalstringphoneticFamilyName
optionalstringphoneticGivenName
optionalstringpostalCode
optionalstringsubAdministrativeArea
optionalstringsubLocality
optionalstring'black'Supported methods for presenting the Apple Pay button.
A translated button label may appear if a language specified in the viewer's browser matches an available language.
add-money
book
buy
check-out
continue
contribute
donate
order
pay
plain
reload
rent
set-up
subscribe
support
tip
top-up
client_secret
optionalstringThe client_secret of the Payment Intent when Payment Intent is provided. Otherwise, this should be the client_secret of the Customer object.
Leave it empty if intent_id and customer_id are not provided as you can provide it in the update() function later.
customer_id
optionalstringThe ID of the Customer used in registered user checkout. Refer to Airwallex Client API
This field is required when mode is 'recurring'.
existingPaymentMethodRequired
optionalbooleanWhether the shopper must have an active card provisioned in Apple Pay.
When set to true, the Apple Pay button will only be displayed if the user has
an active card in their Apple Pay wallet, checked via
ApplePaySession.canMakePaymentsWithActiveCard().
falseintent_id
optionalstringThe ID of the Payment Intent you would like to checkout.
Required when mode is set to 'payment' but optional for 'recurring'.
Refer to Airwallex Client API
lineItems
optionalApplePayLineItem[]amount
requiredstringlabel
requiredstringautomaticReloadPaymentThresholdAmount
optionalstringdeferredPaymentDate
optionalDatepaymentTiming
optional'immediate' | 'deferred' | 'recurring' | 'automaticReload'recurringPaymentEndDate
optionalDaterecurringPaymentIntervalCount
optionalnumberrecurringPaymentIntervalUnit
optional'year' | 'month' | 'day' | 'hour' | 'minute'recurringPaymentStartDate
optionalDatetype
optional'final' | 'pending'merchantCapabilities
optional('supports3DS' | 'supportsEMV' | 'supportsCredit' | 'supportsDebit')[]Payment capabilities supported by the merchant.
If not configured, merchantCapabilities will be based on merchant's account settings.
supports3DS: Required. This value must be supplied.
supportsCredit: Optional. If present, only transactions that are categorized as credit cards are allowed.
supportsDebit: Optional. If present, only transactions that are categorized as debit cards are allowed.
supportsEMV: Include this value only if you support China Union Pay transactions. (if
supportedNetworksdoes not contain chinaUnionPay, don't include it).
mode
optional'payment' | 'recurring''payment'payment_consent
optionalPaymentConsentOptionsnext_triggered_by
required'merchant' | 'customer'merchant_trigger_reason
optional'scheduled' | 'unscheduled' | 'installments''unscheduled'terms_of_use
optionalTermsOfUsepayment_amount_type
required'FIXED' | 'VARIABLE'payment_currency
requiredstringstart_date
requiredstringbilling_cycle_charge_day
optionalnumberThe granularity per billing cycle. Required when payment_schedule.period_unit is WEEK, MONTH, or YEAR.
end_date
optionalstringfirst_payment_amount
optionalnumberThe first payment. It could include the costs associated with the first debited amount. Optional if payment_amount_type is VARIABLE.
fixed_payment_amount
optionalnumberThe fixed payment amount that can be charged for a single payment. Required if payment_amount_type is FIXED.
max_payment_amount
optionalnumberThe maximum payment amount that can be charged for a single payment. Optional if payment_amount_type is VARIABLE.
payment_schedule
optionalobjectperiod
requirednumberThe number of period units between billing cycles. For example, the payment cycle is one month if period=1 and period_unit=MONTH. Required when merchant_trigger_reason = scheduled.
period_unit
required'DAY' | 'WEEK' | 'MONTH' | 'YEAR'Specifies billing frequency. One of DAY, WEEK, MONTH, and YEAR. Required when merchant_trigger_reason = scheduled.
total_billing_cycles
optionalnumberThe total number of billing cycles of the payment schedule. If null, the mandate will continue indefinitely.
requiredBillingContactFields
optional'postalAddress'[]requiredShippingContactFields
optional('email' | 'name' | 'phone' | 'postalAddress' | 'phoneticName')[]shippingContact
optionalApplePayPaymentContactaddressLines
optionalstring[]administrativeArea
optionalstringcountry
optionalstringcountryCode
optionalstringemailAddress
optionalstringfamilyName
optionalstringgivenName
optionalstringlocality
optionalstringphoneNumber
optionalstringphoneticFamilyName
optionalstringphoneticGivenName
optionalstringpostalCode
optionalstringsubAdministrativeArea
optionalstringsubLocality
optionalstringshippingMethods
optionalApplePayShippingMethod[]amount
requiredstringdetail
requiredstringidentifier
requiredstringlabel
requiredstringdateComponentsRange
optionalApplePayDateComponentsRangeendDateComponents
requiredApplePayDateComponentsdays
requirednumberhours
requirednumbermonths
requirednumberyears
requirednumberstartDateComponents
requiredApplePayDateComponentsdays
requirednumberhours
requirednumbermonths
requirednumberyears
requirednumbershippingType
optional'shipping' | 'delivery' | 'storePickup' | 'servicePickup'style
optionalCSSPropertiessupportedCountries
optionalstring[]supportedNetworks
optionalstring[]Card networks supported by the merchant.
If not configured, supportedNetworks will be based on merchant's account settings.
For more details, see https://developer.apple.com/documentation/apple_pay_on_the_web/applepaypaymentrequest/1916122-supportednetworks
totalPriceLabel
optionalstringtotalPriceType
optional'pending' | 'final'Indicate whether a line item is final or pending.
If the mode is recurring and if it's a variable subscription, the value should be pending.
'final'Returns
ApplePayButtonElement | null
1import { init, createElement } from '@airwallex/components-sdk';23await init({4 env: 'prod',5 enabledElements: ['payments'],6});78const element = await createElement('applePayButton', {9 intent_id: 'replace-with-your-intent-id',10 client_secret: 'replace-with-your-client-secret',11 amount: {12 value: 'replace-with-your-intent-amount',13 currency: 'replace-with-your-intent-currency',14 },15 countryCode: 'replace-with-your-country-code',16});1718element.mount('applepay-container');
completeValidation(merchantSession)
Parameters
merchantSession
requiredunknown1element.completeValidation({2 epochTimestamp: 1721269728247,3 expiresAt: 1721273328247,4 merchantSessionIdentifier: 'SSH16075688527B4E',5 nonce: '9c283350',6 merchantIdentifier: '3409DA66CE0',7 domainName: 'your domain name',8 displayName: 'Sawayn, Conner and Quigley',9 signature: '308006092a86',10 operationalAnalyticsIdentifier: 'Carroll, Swaniawski',11 retries: 0,12 pspId: '803FB3E0FC',13});
confirmIntent(data)
Parameters
data
requiredConfirmIntentDataclient_secret
requiredstringclient_secret of the Payment Intent when Payment Intent is provided. Otherwise, this should be the client_secret of the Customer object.payment_consent
optionalPaymentConsentOptionsnext_triggered_by
required'merchant' | 'customer'merchant_trigger_reason
optional'scheduled' | 'unscheduled' | 'installments''unscheduled'terms_of_use
optionalTermsOfUsepayment_amount_type
required'FIXED' | 'VARIABLE'payment_currency
requiredstringstart_date
requiredstringbilling_cycle_charge_day
optionalnumberThe granularity per billing cycle. Required when payment_schedule.period_unit is WEEK, MONTH, or YEAR.
end_date
optionalstringfirst_payment_amount
optionalnumberThe first payment. It could include the costs associated with the first debited amount. Optional if payment_amount_type is VARIABLE.
fixed_payment_amount
optionalnumberThe fixed payment amount that can be charged for a single payment. Required if payment_amount_type is FIXED.
max_payment_amount
optionalnumberThe maximum payment amount that can be charged for a single payment. Optional if payment_amount_type is VARIABLE.
payment_schedule
optionalobjectperiod
requirednumberThe number of period units between billing cycles. For example, the payment cycle is one month if period=1 and period_unit=MONTH. Required when merchant_trigger_reason = scheduled.
period_unit
required'DAY' | 'WEEK' | 'MONTH' | 'YEAR'Specifies billing frequency. One of DAY, WEEK, MONTH, and YEAR. Required when merchant_trigger_reason = scheduled.
total_billing_cycles
optionalnumberThe total number of billing cycles of the payment schedule. If null, the mandate will continue indefinitely.
Returns
Promise<Intent>
Intent
requiredobjectid
requiredstringamount
optionalnumberclient_secret
optionalstringclient_secret of the Payment Intent when Payment Intent is provided. Otherwise, this should be the client_secret of the Customer object.created_at
optionalstringcurrency
optionalstringcustomer_id
optionalstringcustomer_payment_consents
optionalobjectid
requiredstringnext_triggered_by
required'merchant' | 'customer'payment_method
requiredobjecttype
required'card' | 'ach_direct_debit' | 'becs_direct_debit'ach_direct_debit
optionalobjectaba_routing_number
requiredstringaccount_number
requiredstringowner_email
requiredstringowner_name
requiredstringbecs_direct_debit
optionalobjectaccount_number
requiredstringbsb_number
requiredstringowner_email
requiredstringowner_name
requiredstringcard
optionalobjectbin
requiredstringbrand
requiredstringfingerprint
requiredstringlast4
requiredstringnumber_type
required'AIRWALLEX_NETWORK_TOKEN' | 'EXTERNAL_NETWORK_TOKEN' | 'PAN'id
optionalstringstatus
required'PENDING_VERIFICATION' | 'VERIFIED' | 'DISABLED'customer_payment_methods
optionalobjectid
requiredstringcard
optionalobjectbin
requiredstringbrand
requiredstringfingerprint
requiredstringlast4
requiredstringnumber_type
required'AIRWALLEX_NETWORK_TOKEN' | 'EXTERNAL_NETWORK_TOKEN' | 'PAN'merchant_order_id
optionalstringpayment_consent_id
optionalstringrequest_id
optionalstringstatus
optionalstringupdated_at
optionalstring1element.confirmIntent({2 client_secret: intent?.client_secret,3});
createPaymentConsent(data)
Parameters
data
requiredParameterObjectclient_secret
requiredstringclient_secret of the Payment Intent when Payment Intent is provided. Otherwise, this should be the client_secret of the Customer object.Returns
Promise<Consent | undefined>
Consent
requiredobjectclient_secret
requiredstringclient_secret returned when creating a Payment Consent.created_at
requiredstringcustomer_id
requiredstringid
requiredstringnext_triggered_by
required'merchant' | 'customer'merchant or customer should trigger subsequent payments.status
required'PENDING_VERIFICATION' | 'VERIFIED' | 'DISABLED'updated_at
requiredstringinitial_payment_intent_id
optionalstringmerchant_trigger_reason
optional'scheduled' | 'unscheduled''scheduled' or 'unscheduled'. Only applicable when next_triggered_by is 'merchant'.'unscheduled'1element.createPaymentConsent({2 client_secret: intent?.client_secret,3});
destroy()
1element.destroy();
mount(domElement)
Parameters
domElement
requiredstring | HTMLElementReturns
HTMLElement | null
1// There are two ways to mount the element:2// 1. Call with the container DOM id3element.mount('container-dom-id');45// 2. Find the created DOM in the existing HTML and call with the container DOM element6const containerElement = document.getElementById('container-dom-id');7element.mount(containerElement);
on('ready', handler)
Parameters
type
required'ready'handler
required() => void1element.on('ready', () => {2 console.log('Apple Pay button is ready');3 });
on('success', handler)
Parameters
type
required'success'handler
requiredfunctionThe callback function that will be called when the event occurs.
The handler receives an object with the following properties:
detail
requiredobjectconsent
optionalConsentclient_secret
requiredstringclient_secret returned when creating a Payment Consent.created_at
requiredstringcustomer_id
requiredstringid
requiredstringnext_triggered_by
required'merchant' | 'customer'merchant or customer should trigger subsequent payments.status
required'PENDING_VERIFICATION' | 'VERIFIED' | 'DISABLED'updated_at
requiredstringinitial_payment_intent_id
optionalstringmerchant_trigger_reason
optional'scheduled' | 'unscheduled''scheduled' or 'unscheduled'. Only applicable when next_triggered_by is 'merchant'.'unscheduled'intent
optionalIntentid
requiredstringamount
optionalnumberclient_secret
optionalstringclient_secret of the Payment Intent when Payment Intent is provided. Otherwise, this should be the client_secret of the Customer object.created_at
optionalstringcurrency
optionalstringcustomer_id
optionalstringcustomer_payment_consents
optionalobjectid
requiredstringnext_triggered_by
required'merchant' | 'customer'payment_method
requiredobjecttype
required'card' | 'ach_direct_debit' | 'becs_direct_debit'ach_direct_debit
optionalobjectaba_routing_number
requiredstringaccount_number
requiredstringowner_email
requiredstringowner_name
requiredstringbecs_direct_debit
optionalobjectaccount_number
requiredstringbsb_number
requiredstringowner_email
requiredstringowner_name
requiredstringcard
optionalobjectbin
requiredstringbrand
requiredstringfingerprint
requiredstringlast4
requiredstringnumber_type
required'AIRWALLEX_NETWORK_TOKEN' | 'EXTERNAL_NETWORK_TOKEN' | 'PAN'id
optionalstringstatus
required'PENDING_VERIFICATION' | 'VERIFIED' | 'DISABLED'customer_payment_methods
optionalobjectid
requiredstringcard
optionalobjectbin
requiredstringbrand
requiredstringfingerprint
requiredstringlast4
requiredstringnumber_type
required'AIRWALLEX_NETWORK_TOKEN' | 'EXTERNAL_NETWORK_TOKEN' | 'PAN'merchant_order_id
optionalstringpayment_consent_id
optionalstringrequest_id
optionalstringstatus
optionalstringupdated_at
optionalstring1element.on('success', (e) => {2 const { intent, consent } = e.detail;3 console.log('Payment is successful', { intent, consent });4 });
on('error', handler)
Parameters
type
required'error'handler
requiredfunctionThe callback function that will be called when the event occurs.
The handler receives an object with the following properties:
detail
requiredobjecterror
requiredobjectcode
requiredstringdetails
optionalRecord<string, unknown>message
optionalstring1element.on('error', (e) => {2 const { error } = e.detail;3 console.error('There is an error', error);4 });
on('cancel', handler)
Parameters
type
required'cancel'handler
required() => void1element.on('cancel', () => {2 console.log('Payment cancelled');3 });
on('shippingMethodChange', handler)
Parameters
type
required'shippingMethodChange'handler
requiredfunctionThe callback function that will be called when the event occurs.
The handler receives an object with the following properties:
detail
requiredobjectshippingMethod
requiredobjectamount
requiredstringdetail
requiredstringidentifier
requiredstringlabel
requiredstringdateComponentsRange
optionalobjectendDateComponents
requiredApplePayDateComponentsdays
requirednumberhours
requirednumbermonths
requirednumberyears
requirednumberstartDateComponents
requiredApplePayDateComponentsdays
requirednumberhours
requirednumbermonths
requirednumberyears
requirednumber1element.on('shippingMethodChange', (e) => {2 const { shippingMethod } = e.detail;3 console.log('Shipping method changed', shippingMethod);4 });
on('shippingAddressChange', handler)
Parameters
type
required'shippingAddressChange'handler
requiredfunctionThe callback function that will be called when the event occurs.
The handler receives an object with the following properties:
detail
requiredobjectshippingAddress
requiredApplePayPaymentContactaddressLines
optionalstring[]administrativeArea
optionalstringcountry
optionalstringcountryCode
optionalstringemailAddress
optionalstringfamilyName
optionalstringgivenName
optionalstringlocality
optionalstringphoneNumber
optionalstringphoneticFamilyName
optionalstringphoneticGivenName
optionalstringpostalCode
optionalstringsubAdministrativeArea
optionalstringsubLocality
optionalstring1element.on('shippingAddressChange', (e) => {2 const { shippingAddress } = e.detail;3 console.log('Shipping address changed', shippingAddress);4 });
on('click', handler)
Parameters
type
required'click'handler
required() => void1element.on('click', () => {2 console.log('Apple Pay button clicked');3 });
on('validateMerchant', handler)
Parameters
type
required'validateMerchant'handler
requiredfunctionThe callback function that will be called when the event occurs.
The handler receives an object with the following properties:
detail
requiredobjectvalidationURL
requiredstring1element.on('validateMerchant', (e) => {2 const { validationURL } = e.detail;3 console.log('Validation URL', validationURL);4 });
The callback function that will be called when the event occurs.
The handler receives an object with the following properties:
1element.on('authorized', (e) => {2 const { paymentData } = e.detail;3 console.log('Payment authorized', paymentData);4 });
unmount()
1element.unmount();
update(options?, initOptions?)
Parameters
options
optionalApplePayButtonUpdateOptionsamount
optionalAmountIndicate the amount and currency of the Payment Intent.
If the mode is set to 'recurring' and intent_id omitted, amount should be {value: '0', currency: 'Replace with payment currency'}.
currency
requiredstringvalue
requirednumberappearance
optionalApplePayButtonAppearancerules
optionalApplePayButtonCssSelector.ApplePayButton
optionalCSSProperties.ApplePayButton:hover
optionalCSSPropertiesapplicationData
optionalstringThe authorization type for the card payment.
Set it to 'pre_auth' if you want to place a hold on your customer's card for more than 7 days, i.e., extend the authorization time window.
Currently it's only available when the card brand is Visa or Mastercard. autoCapture will be automatically set to false if you enable pre_auth.
'final_auth'autoCapture
optionalbooleanWhether the amount should be captured automatically upon successful payment authorization.
Set it to false if you want to place a hold on the payment method and capture the funds sometime later.
truebillingContact
optionalApplePayPaymentContactaddressLines
optionalstring[]administrativeArea
optionalstringcountry
optionalstringcountryCode
optionalstringemailAddress
optionalstringfamilyName
optionalstringgivenName
optionalstringlocality
optionalstringphoneNumber
optionalstringphoneticFamilyName
optionalstringphoneticGivenName
optionalstringpostalCode
optionalstringsubAdministrativeArea
optionalstringsubLocality
optionalstring'black'Supported methods for presenting the Apple Pay button.
A translated button label may appear if a language specified in the viewer's browser matches an available language.
add-money
book
buy
check-out
continue
contribute
donate
order
pay
plain
reload
rent
set-up
subscribe
support
tip
top-up
client_secret
optionalstringThe client_secret of the Payment Intent when Payment Intent is provided. Otherwise, this should be the client_secret of the Customer object.
Leave it empty if intent_id and customer_id are not provided as you can provide it in the update() function later.
countryCode
optionalstringcustomer_id
optionalstringThe ID of the Customer used in registered user checkout. Refer to Airwallex Client API
This field is required when mode is 'recurring'.
errors
optionalApplePayError[]code
requiredenumshippingContactInvalid
billingContactInvalid
addressUnserviceable
couponCodeInvalid
couponCodeExpired
unknown
message
requiredstringcontactField
optionalenumphoneNumber
emailAddress
name
phoneticName
postalAddress
addressLines
locality
subLocality
postalCode
administrativeArea
subAdministrativeArea
country
countryCode
existingPaymentMethodRequired
optionalbooleanWhether the shopper must have an active card provisioned in Apple Pay.
When set to true, the Apple Pay button will only be displayed if the user has
an active card in their Apple Pay wallet, checked via
ApplePaySession.canMakePaymentsWithActiveCard().
falseintent_id
optionalstringThe ID of the Payment Intent you would like to checkout.
Required when mode is set to 'payment' but optional for 'recurring'.
Refer to Airwallex Client API
lineItems
optionalApplePayLineItem[]amount
requiredstringlabel
requiredstringautomaticReloadPaymentThresholdAmount
optionalstringdeferredPaymentDate
optionalDatepaymentTiming
optional'immediate' | 'deferred' | 'recurring' | 'automaticReload'recurringPaymentEndDate
optionalDaterecurringPaymentIntervalCount
optionalnumberrecurringPaymentIntervalUnit
optional'year' | 'month' | 'day' | 'hour' | 'minute'recurringPaymentStartDate
optionalDatetype
optional'final' | 'pending'merchantCapabilities
optional('supports3DS' | 'supportsEMV' | 'supportsCredit' | 'supportsDebit')[]Payment capabilities supported by the merchant.
If not configured, merchantCapabilities will be based on merchant's account settings.
supports3DS: Required. This value must be supplied.
supportsCredit: Optional. If present, only transactions that are categorized as credit cards are allowed.
supportsDebit: Optional. If present, only transactions that are categorized as debit cards are allowed.
supportsEMV: Include this value only if you support China Union Pay transactions. (if
supportedNetworksdoes not contain chinaUnionPay, don't include it).
mode
optional'payment' | 'recurring''payment'payment_consent
optionalPaymentConsentOptionsnext_triggered_by
required'merchant' | 'customer'merchant_trigger_reason
optional'scheduled' | 'unscheduled' | 'installments''unscheduled'terms_of_use
optionalTermsOfUsepayment_amount_type
required'FIXED' | 'VARIABLE'payment_currency
requiredstringstart_date
requiredstringbilling_cycle_charge_day
optionalnumberThe granularity per billing cycle. Required when payment_schedule.period_unit is WEEK, MONTH, or YEAR.
end_date
optionalstringfirst_payment_amount
optionalnumberThe first payment. It could include the costs associated with the first debited amount. Optional if payment_amount_type is VARIABLE.
fixed_payment_amount
optionalnumberThe fixed payment amount that can be charged for a single payment. Required if payment_amount_type is FIXED.
max_payment_amount
optionalnumberThe maximum payment amount that can be charged for a single payment. Optional if payment_amount_type is VARIABLE.
payment_schedule
optionalobjectperiod
requirednumberThe number of period units between billing cycles. For example, the payment cycle is one month if period=1 and period_unit=MONTH. Required when merchant_trigger_reason = scheduled.
period_unit
required'DAY' | 'WEEK' | 'MONTH' | 'YEAR'Specifies billing frequency. One of DAY, WEEK, MONTH, and YEAR. Required when merchant_trigger_reason = scheduled.
total_billing_cycles
optionalnumberThe total number of billing cycles of the payment schedule. If null, the mandate will continue indefinitely.
requiredBillingContactFields
optional'postalAddress'[]requiredShippingContactFields
optional('email' | 'name' | 'phone' | 'postalAddress' | 'phoneticName')[]shippingContact
optionalApplePayPaymentContactaddressLines
optionalstring[]administrativeArea
optionalstringcountry
optionalstringcountryCode
optionalstringemailAddress
optionalstringfamilyName
optionalstringgivenName
optionalstringlocality
optionalstringphoneNumber
optionalstringphoneticFamilyName
optionalstringphoneticGivenName
optionalstringpostalCode
optionalstringsubAdministrativeArea
optionalstringsubLocality
optionalstringshippingMethods
optionalApplePayShippingMethod[]amount
requiredstringdetail
requiredstringidentifier
requiredstringlabel
requiredstringdateComponentsRange
optionalApplePayDateComponentsRangeendDateComponents
requiredApplePayDateComponentsdays
requirednumberhours
requirednumbermonths
requirednumberyears
requirednumberstartDateComponents
requiredApplePayDateComponentsdays
requirednumberhours
requirednumbermonths
requirednumberyears
requirednumbershippingType
optional'shipping' | 'delivery' | 'storePickup' | 'servicePickup'style
optionalCSSPropertiessupportedCountries
optionalstring[]supportedNetworks
optionalstring[]Card networks supported by the merchant.
If not configured, supportedNetworks will be based on merchant's account settings.
For more details, see https://developer.apple.com/documentation/apple_pay_on_the_web/applepaypaymentrequest/1916122-supportednetworks
totalPriceLabel
optionalstringtotalPriceType
optional'pending' | 'final'Indicate whether a line item is final or pending.
If the mode is recurring and if it's a variable subscription, the value should be pending.
'final'initOptions
optionalInitOptionsenv
optional'demo' | 'prod''prod'fonts
optionalFontOptions[]family
optionalstringThe font-family property, for example, AxLLCircular.
https://developer.mozilla.org/en-US/docs/Web/CSS/font-family
src
optionalstringThe font-source property, for example, https://checkout.airwallex.com/fonts/CircularXXWeb/CircularXXWeb-Regular.woff2.
https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face
weight
optionalstring | numberThe font-weight property. Supported font weights include: regular (400) and bold (700). https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight
locale
optionalenumar
da
de
en
es
fi
fr
he
id
it
ja
ko
ms
nl
pl
pt
ro
ru
si
sv
tr
vi
ur
zh
zh-HK
origin
optionalstringDeprecated1element.update({2 buttonType: 'donate',3}, {4 locale: 'en',5});