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.
Field Type Description callbackUrlString URL to receive transaction status updates successRedirectUrlString URL to redirect the customer after successful payment failureRedirectUrlString URL to redirect the customer after failed payment
Field Type Description firstNameString Customer’s first name lastNameString Customer’s last name address1String First line of the billing address cityString City of the billing address countryString Country code in ISO Alpha-2 format postalCodeString Postal/ZIP code phoneString Customer’s phone number emailString Customer’s email address
Field Type Description ipString Customer’s IP address
JSON
{
"paymentMethod": "EXTERNAL_HPP_APPLE_PAY",
"paymentType": "E_WALLET"
}
Field Type Required Description paymentMethod Enum Yes Must be "EXTERNAL_HPP_APPLE_PAY" paymentType Enum Yes Must be "E_WALLET"
No additional fields are required. All necessary user interaction and Apple Pay token collection are handled through the Hosted Checkout interface.
JSON
{
"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"
}
}
Field Type Description paymentMethod Enum "EXTERNAL_HPP_APPLE_PAY"paymentType Enum "E_WALLET"redirectUrl String (nullable) URL to redirect the customer to the Apple Pay checkout iframeUrl String (nullable) URL for embedding the Apple Pay checkout via iframe providerTransactionId String (nullable) Transaction ID from the payment provider extra Map<String, String> Optional metadata, may contain receipt or other details