ExternalHPPApplePay

ExternalHppApplePayPayload

Payment Method Identifier

EXTERNAL_HPP_APPLE_PAY

Description

This method allows you to accept Apple Pay payments via an external Hosted Checkout Page (HPP). The checkout page collects the Apple Pay token securely and handles the interaction with the payment provider. This approach offloads PCI compliance and simplifies integration.


✅ Required Request Fields

Top-Level Fields

FieldTypeDescription
callbackUrlStringURL to receive transaction status updates
successRedirectUrlStringURL to redirect the customer after successful payment
failureRedirectUrlStringURL to redirect the customer after failed payment

Billing Details (ApmBillingDetails)

FieldTypeDescription
firstNameStringCustomer’s first name
lastNameStringCustomer’s last name
address1StringFirst line of the billing address
cityStringCity of the billing address
countryStringCountry code in ISO Alpha-2 format
postalCodeStringPostal/ZIP code
phoneStringCustomer’s phone number
emailStringCustomer’s email address

Device Information (Device)

FieldTypeDescription
ipStringCustomer’s IP address

Payload Structure

{
  "paymentMethod": "EXTERNAL_HPP_APPLE_PAY",
  "paymentType": "E_WALLET"
}

Fields

FieldTypeRequiredDescription
paymentMethodEnumYesMust be "EXTERNAL_HPP_APPLE_PAY"
paymentTypeEnumYesMust be "E_WALLET"

No additional fields are required. All necessary user interaction and Apple Pay token collection are handled through the Hosted Checkout interface.

Expected apmResponseData (ExternalHppApplePayResponseData)

{
  "paymentMethod": "EXTERNAL_HPP_APPLE_PAY",
  "paymentType": "E_WALLET",
  "redirectUrl": "https://checkout.example.com/redirect/applepay/abc123",
  "iframeUrl": "https://checkout.example.com/iframe/applepay/abc123",
  "providerTransactionId": "txn_apple_001",
  "extra": {
    "receipt": "ApplePayTransactionReference"
  }
}

Response Fields

FieldTypeDescription
paymentMethodEnum"EXTERNAL_HPP_APPLE_PAY"
paymentTypeEnum"E_WALLET"
redirectUrlString (nullable)URL to redirect the customer to the Apple Pay checkout
iframeUrlString (nullable)URL for embedding the Apple Pay checkout via iframe
providerTransactionIdString (nullable)Transaction ID from the payment provider
extraMap<String, String>Optional metadata, may contain receipt or other details