ExternalHppApplePayPayload

Payment Method Identifier EXTERNAL_HPP_APPLE_PAY

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
callbackUrlStringThe server endpoint where transaction status notifications (webhooks) will be sent after processing the payment.
successRedirectUrlStringThe URL to which the customer is redirected on successful completion of the payment process.
failureRedirectUrlStringThe URL to which the customer is redirected if the payment fails or is declined.

Billing Details (ApmBillingDetails)

FieldTypeDescription
firstNameStringThe given name of the customer as it appears on billing records.
lastNameStringThe surname of the customer for identification and billing purposes.
address1StringThe first line of the customer’s billing address (e.g., street name).
cityStringThe city associated with the customer’s billing address.
countryStringThe two-letter ISO Alpha-2 country code of the billing address.
postalCodeStringThe postal or ZIP code for the customer’s billing location.
phoneStringThe customer’s contact phone number, including country code if available.
emailStringThe customer’s email address used for communication or receipts.

Device Information (Device)

FieldTypeDescription
ipStringThe IP address of the customer’s device, captured during the payment request.

Payload Structure

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

Fields

FieldTypeRequiredDescription
paymentMethodEnumYesIndicates the payment method used. Must be set to EXTERNAL_HPP_APPLE_PAY for Apple Pay transactions.
paymentTypeEnumYesSpecifies the payment type. Must always be E_WALLET when using Apple Pay.

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
paymentMethodEnumIndicates the payment method used. For Apple Pay, the value is EXTERNAL_HPP_APPLE_PAY.
paymentTypeEnumSpecifies the payment type. For Apple Pay, it is always E_WALLET.
redirectUrlString (nullable)URL to which the customer should be redirected to complete the Apple Pay checkout process.
iframeUrlString (nullable)URL for embedding the Apple Pay checkout experience in an iframe (if supported).
providerTransactionIdString (nullable)Unique transaction ID provided by the payment provider for reference.
extraMap<String, String>Optional metadata that may include additional details such as receipts or payment-specific information.