1. CarApplePay interface
  • Home Page
  • Libraries & SDKs (Online Payments)
    • Release notes
    • Mobile
      • Kushki Android
      • Kushki iOS 
      • Kushki iOS ARM Setup
    • Web
      • Kushki.js 🌐
      • kushki.js-hosted-fields
        • kushki.js Hosted Fields
        • Guía de migración a Kushki.js 2.0
        • Antifraud
          • Interfaces
            • SecureInitRequest
            • SecureInitResponse
            • SiftScienceObject
          • Methods
            • requestInitAntiFraud
            • requestSecureInit
            • requestValidate3DS
        • Card
          • CarApplePay interface
            • ICardApplePay Interface
          • Card-Interface
            • ICard Interface
            • ICardSubscriptions Interface
          • Errors
            • Error list
          • Interfaces
            • Amount
            • ApplePayGetTokenOptions Interface
            • ApplePayOptions Interface
            • ApplePayPaymentContact
            • AppleTokenResponse
            • BrandByMerchantResponse Interface
            • CardFieldValues
            • CardInfo
            • CardOptions
            • CardTokenResponse
            • DeferredByBinOptionsResponse
            • DeferredInputValues
            • DeferredValuesResponse
            • DeviceTokenRequest
            • Field
            • FieldInstance
            • Fields
            • FieldValidity
            • FormValidity
            • MasterCardBrandingRequest
            • SecureDeviceTokenOptions
            • Styles
            • TokenResponse
            • VisaBrandingRequest
          • Methods
            • initApplePayButton
            • initCardToken
            • initSecureDeviceToken
            • requestBrandsByMerchant method
            • requestDeviceToken method
            • requestInitCardBrandingAnimation
          • Types
            • CssProperties
            • Currency
            • FieldTypeEnum
        • Card Payouts
          • Card Payouts Interface
            • ICardPayouts
          • Enumerations
            • Enumeration `InputModelEnum`
          • Errors
            • Errors
          • Interfaces
            • CardPayoutOptions
            • CardPayoutSubscriptionTokenResponse
            • CardPayoutUniqueTokenResponse
            • Field
            • Fields
            • FieldValidity
            • Interface FormValidity
            • Interface `Styles`
          • Methods
            • initCardPayoutToken
          • Type Aliases
            • CardPayoutTokenResponse
            • InputTypeEnum
          • Types
            • CssProperties
        • Kushki
          • Methods
            • init function
            • requestBankList function
            • requestCommissionConfiguration function
          • Classes
            • KushkiError
          • Interfaces
            • CommissionConfigurationRequest
            • IKushki
            • KushkiOptions
Bienvenida
Perú 🇵🇪México 🇲🇽Ecuador 🇪🇨Colombia 🇨🇴Chile 🇨🇱
Bienvenida
Perú 🇵🇪México 🇲🇽Ecuador 🇪🇨Colombia 🇨🇴Chile 🇨🇱
  1. CarApplePay interface

ICardApplePay Interface

Watch Out!
The Apple Pay functionality is currently in a testing phase. It is only available for merchants in Chile 🇨🇱, Mexico 🇲🇽, and Peru 🇵🇪, and supports Visa and Mastercard cards.
Please note that this functionality is subject to change without prior notice.
This interface contains all methods available in the instance returned by initApplePayButton.

Hierarchy#

ICardApplePay

Methods#

MethodDescription
onCancel(callback): voidTriggered when the Apple Pay token process is canceled.
onClick(callback): voidTriggered when the user clicks on the Apple Pay button.
requestApplePayToken(options): Promise<AppleTokenResponse>Starts the Apple Pay payment flow and requests a Kushki card token.

onCancel#

This event is triggered when the Apple Pay token process is canceled.

Parameters#

NameTypeDescription
callback() => voidFunction executed when the tokenization process is canceled.

Returns#

void

Example#

The cardApplePay instance must be previously initialized with initApplePayButton.

onClick#

This event is triggered when the user clicks on the Apple Pay button.

Parameters#

NameTypeDescription
callback() => voidFunction executed when the Apple Pay button is clicked.

Returns#

void

Example#

The cardApplePay instance must be previously initialized with initApplePayButton.

requestApplePayToken#

Starts the Apple Pay payment flow and requests a Kushki card token.
This token is already processed and ready to be used in Kushki's API to perform a charge or create a subscription.
Important
This method requires that initApplePayButton has been successfully initialized and uses a valid ICardApplePay instance.

Parameters#

NameTypeDescription
optionsApplePayGetTokenOptionsConfiguration options for the Apple Pay payment request.
ApplePayGetTokenOptions fields:
FieldTypeDescription
amountnumberTransaction amount.
countryCodestringMerchant's country (e.g., "BR", "CL", "CO", "CR", "EC", "SV", "GT", "HN", "MX", "NI", "PA", "PE").
currencyCodestringCurrency for the transaction (e.g., "USD", "COP", "CLP", "UF", "PEN", "MXN", "BRL", "CRC", "GTQ", "HNL", "NIO").
displayNamestringThe merchant name displayed in the Apple Pay sheet.
isSubscriptionboolean (optional)When true, generates a subscription token instead of a one-time payment token. Default: false.
optionalApplePayFieldsobject (optional)Additional Apple Pay configuration fields following Apple's official specification. Allows merchants to customize the checkout experience (e.g., required shipping methods, billing address, etc.).

Returns#

Promise<AppleTokenResponse> — A promise that resolves with the tokenized payment response.

Throws#

CodeDescription
ERRORS.E025Apple Pay payments are not available.
ERRORS.E026Apple Pay token process fails.
ERRORS.E027Apple Pay token process canceled.

Example — One-time payment#

Use this when you need a token to perform a single charge.

Example — Subscription payment#

Set isSubscription: true to generate a subscription token. This token is used to create a recurring charge via Kushki's subscription API.

Example — Required billing and shipping data#


Got a suggestion on this documentation? Contact us.
Modified at 2026-06-11 22:28:30
Previous
requestValidate3DS
Next
ICard Interface
Built with