Embedded Apple Pay — Implementation & Go-Live

Frontend Apple Pay Button Implementation

  1. Use Apple Pay JS API to render the Apple Pay button on your checkout page.
  2. Ensure the merchantIdentifier matches your Apple Merchant ID.
  3. Set the supported payment networks (e.g., visa, masterCard).
  4. Handle the onpaymentauthorized event to capture the payment token.
💡

Tip: Apple Pay button styles (black, white, outline) and localization options are available in Apple’s official documentation.

Draw Apple Pay Buttons

<div class="apple-pay-button-with-text apple-pay-button-white-with-text">
<span class="text">Buy with</span>
<span class="logo"></span>
</div>

Backend Payment Request to EdfaPay S2S API

  1. Receive the Apple Pay payment token from your frontend.
  2. Pass the token to EdfaPay’s S2S Sale API in the source field.
  3. Include all required authentication parameters (client_key, password, hash).
  4. Handle the API response and update the order status accordingly in your system.

Go Live Checklist

  • Test on a real Apple Pay-enabled device in production mode (sandbox not supported).
  • Verify successful transactions in the EdfaPay dashboard.
  • Ensure all Apple Pay domain verifications and certificates are active.
  • Contact EdfaPay Support for onboarding confirmation or troubleshooting assistance.