All articles

How to accept Apple Pay on your website

Apple Pay lets eligible customers use a card in their wallet at checkout. To offer it on your website, confirm account support, complete the setup for your platform and test the purchase from payment through refund.

In this article

Adding Apple Pay starts with the payment connection your store already uses. A logo tells customers what you accept, but the account, website and checkout must be configured to process the payment behind it.

Start with your existing checkout

Ask your ecommerce platform or payment provider whether its connection supports Apple Pay for your account, country, currencies and accepted cards. Apple Pay does not replace merchant approval or automatically enable every card network.

Apple supports both direct implementation and setup through participating platforms and payment providers. Approved providers can register merchant websites on their behalf. Confirm which requirements your provider handles before creating your own Apple identifiers or certificates.

  • Shopify. Use the wallet instructions for the payment provider connected to your store. Trolleys merchants can begin with the Shopify integration guide.
  • WooCommerce. Follow the instructions for the installed payment plugin and gateway account. See the WooCommerce integration guide.
  • A custom website. Ask your web team to follow the chosen provider’s supported checkout integration. Etail’s developer setup instructions cover Apple Pay domain verification for Cybersource Unified Checkout.

Confirm which payment methods are enabled for your Trolleys account. A general Apple Pay capability does not establish that a particular store is ready to use it.

Complete the domain setup

For a custom website using Cybersource Unified Checkout, the merchant and web team complete domain verification together:

  1. Sign in to the store’s Business Center and open Payment Configuration → Unified Checkout. Choose Set Up in the Apple Pay section.
  2. Download the supplied domain verification file and have your web team place it at /.well-known/apple-developer-merchantid-domain-association on the checkout domain.
  3. Confirm that the file opens directly over HTTPS on that domain. It must return the file itself, not a login page, redirect or website error page.
  4. Return to the setup screen, select Verify Domain and submit the same domain. Confirm verification succeeds for each domain where the integration requires it.

This is a public domain verification file. It is different from a private .p12 encryption certificate or an API secret. Never put private credentials at this public address.

If verification fails, ask the web team to check the exact hostname, file contents, HTTPS certificate and whether Apple can reach the file. Follow your platform’s own process when it manages verification for you.

Make the payment easy to recognize

Use the supported Apple Pay button supplied by your integration. Apple distinguishes its payment button from its acceptance mark: the mark communicates availability and is not itself a working payment button.

The payment sheet should identify the business and show the correct total, currency and relevant delivery details. Request only information needed for the purchase. If the customer changes an address or shipping method, check that the payment total and store order stay aligned.

Apple Pay availability depends on the customer’s card, device, browser, region and your integration. It is not limited to Safari in every setup. Participating websites can support a code that customers scan with an eligible iPhone or iPad to complete a purchase started in another browser. Do not promise that flow unless your chosen checkout supports it.

Keep another supported payment option available when Apple Pay cannot be used. Customers should understand how to continue without troubleshooting your wallet configuration.

Test the complete order

Domain verification and payment testing are separate tasks. Apple’s sandbox requires a supported device, a sandbox tester and the appropriate test cards. Your gateway connection must also use its matching test environment. Follow the provider’s wallet testing instructions rather than entering a generic test card into a live wallet.

  1. Review the final amount. Check products, discounts, taxes, shipping, merchant name and currency. Where the checkout supports address or delivery changes, confirm the final order matches the payment sheet.
  2. Cancel and recover. Cancel before payment and check that the customer can return to the order. Test unsuccessful and interrupted attempts without creating duplicate orders or requesting payment again before checking the existing result.
  3. Confirm the payment record. Match the order with the gateway reference and required payment status. Browser navigation alone is not proof of a successful charge.
  4. Check the follow-up. Confirm the receipt and support references, then test the supported refund or cancellation flow and its connection to the original transaction.

Apple also calls for production validation using real cards and production settings. Agree a controlled live check with your provider and the cardholder before making a charge, and confirm the refund procedure. Sandbox success alone does not establish that the production setup works.

Etail’s testing checklist covers the wider checkout and recovery checks. The refund service page explains the merchant follow-up.

Keep the setup working

Assign someone to own domain verification, certificate renewal and the account notices relevant to your chosen integration. Apple can recheck domain access, so keep the verification file reachable. If your provider manages certificates, confirm what remains your team’s responsibility.

Review Apple Pay again when changing the checkout domain, hosting, payment plugin or integration. Include the supported phone and desktop journeys in that review, not just whether the button still appears.

Confirm processing charges in your accepted provider terms. Adding a wallet does not by itself guarantee more approved payments, faster payouts or protection from every dispute.

After launch, review completed orders, failed attempts and customer questions. If Apple Pay is missing or setup remains unclear, contact account support with the store domain and integration name. Keep passwords and private keys out of support messages.