Skip to contentTalk to us
Payments & commerce

Apple Pay on your website: how it works and what you need

How to add Apple Pay to your website or app in Saudi Arabia and the UAE: gateway, domain verification, HTTPS, Merchant ID for iOS, testing and common mistakes.

Fanann Team8 min read
WhatsApp
Quick answer

To add Apple Pay to your website you need a payment gateway that supports it, a site running on your own domain over HTTPS, and that domain verified with Apple, usually through your gateway by hosting a file at a specific path. The Apple Pay button then appears for Safari users on Apple devices with Apple Pay set up, and customers pay with Face ID or Touch ID. In an iOS app you also need a Merchant ID and a payment processing certificate from an Apple Developer account.

People look for this as
  • how to add apple pay to my website
  • apple pay on website requirements
  • apple pay domain verification
  • does apple pay work with mada
  • apple pay for online store saudi arabia
  • why is apple pay button not showing on my website

How do you add Apple Pay to your website?

To add Apple Pay to your website you need three things: a payment gateway that supports Apple Pay and has it enabled on your account, a site running on your own domain over HTTPS, and that domain verified with Apple. Verification usually happens in your gateway's dashboard: it gives you a file to place at a specific path on your site, then you click verify. After that, the Apple Pay button appears for customers on Apple devices and they pay with one tap.

Why is it worth the effort? A large share of Gulf shoppers use iPhones, and typing a card number on a small phone screen is one of the most common reasons people abandon checkout. With Apple Pay the customer types no number, no expiry date and no code; they see the amount and confirm with Face ID or Touch ID. In Saudi Arabia Apple Pay also works with mada cards, so it serves the card people use most for everyday spending.

This guide focuses on Apple Pay specifically. For the full picture of mada and Apple Pay together, read how to accept mada and Apple Pay on your website.

How does Apple Pay work behind the scenes?

When a customer adds a card to Apple Wallet, the real card number is not stored on the device; a device-specific substitute number is. At payment time the device creates encrypted payment data for that one transaction, your page passes it to the gateway, and the gateway decrypts it and sends it through the card network to the customer's bank.

  1. 1
    The button appears

    Your page checks that the browser and device support Apple Pay and that the customer has a card, then shows the button.

  2. 2
    The payment sheet

    The customer taps it and the Apple Pay sheet shows your store name, the amount and a shipping address if you request one.

  3. 3
    Merchant validation

    In the background your server or gateway confirms with Apple that this domain is a verified merchant.

  4. 4
    Authentication

    The customer confirms with Face ID, Touch ID or their passcode, and an encrypted payment token is created.

  5. 5
    Processing

    The token goes to your gateway, which processes the transaction and returns approved or declined.

  6. 6
    Confirmation

    The result reaches your server via webhook, so you confirm the order and issue the invoice.

What do you need before you switch it on?

RequirementOn a websiteIn an iOS app
Gateway that supports Apple PayYesYes
Custom domain over HTTPSRequired; a temporary preview link will not doNot needed for the payment sheet itself
Domain verified with AppleRequired, usually through the gatewayNo
Apple Developer accountUsually not, if the gateway handles verificationYes
Merchant IDUsually managed by the gatewayYou create it and enable it in the app
Payment processing certificateUsually managed by the gatewayCreated from a signing request your gateway provides
Clear policy pagesRefunds, privacy, terms and seller detailsThe same, and also needed for store review

The domain is where many people stumble. If your site is still on a preview link, connect your domain first using how to connect a custom domain and make sure the SSL certificate is active. Note that every subdomain you take payments on, such as shop or pay, needs its own verification.

Setup steps from account to first transaction

  1. Open a merchant account with a gateway that supports Apple Pay, and ask for it to be enabled; it may not be on by default.
  2. Confirm mada support through Apple Pay if you are in Saudi Arabia, and local card support such as Jaywan in the UAE, depending on your gateway.
  3. Verify your domain in the gateway dashboard: upload the file to the required path, then click verify.
  4. Add the button using Apple's official styles, at the top of checkout above the card form, without freely changing its colors or text.
  5. Wire up the server: the checkout page sends the token to the gateway, and your server receives confirmation by webhook.
  6. Test in sandbox mode, then with a small real payment on your own device, and refund it.
  7. Monitor the share of Apple Pay versus card payments after launch to see its impact.

To pick a gateway, see best payment gateway in Saudi Arabia or best payment gateway in the UAE. With Fanann you connect the gateway through the payments page and the agent handles the button, server and confirmation.

Where does the button show, and when does it not?

Apple Pay on the web was designed mainly for Safari on iPhone, iPad and Mac devices with Apple Pay set up. Apple has broadened support so some users on other browsers can complete payment by scanning a code with their iPhone, but the smoothest experience is still Safari. That is why you should show the button only when payment is actually possible, and always show alternatives.

The button usually appears
  • Safari on an iPhone with a card in Wallet
  • Safari on a Mac with Touch ID or a nearby iPhone
  • A checkout on a verified domain over HTTPS
  • A native iOS app with the Apple Pay capability enabled
It may not appear or may behave differently
  • Android devices
  • In-app browsers such as Snapchat or Instagram
  • An unverified subdomain or preview link
  • A checkout embedded in a frame from another site

The in-app browser point matters if you rely on Snapchat and TikTok ads: many visitors open your link inside the app's browser, where Apple Pay may not behave as it does in Safari. Test that path yourself, and keep mada and cards visible as a fallback at all times.

Apple Pay inside your iPhone app

In a native app you use the native Apple Pay sheet instead of the web button. You need an Apple Developer account to create a Merchant ID, then you create a payment processing certificate using a signing request from your gateway, and enable the Apple Pay capability in the app settings. From there it works like the web: an encrypted token goes to the gateway, and confirmation reaches your server.

  • For physical goods and real-world services, such as orders, bookings and deliveries, you can use Apple Pay through your gateway.
  • For digital content and features used inside the app, Apple's in-app purchase rules may apply; check the review guidelines.
  • Payments inside an embedded web page in the app can behave differently; the native sheet is the safer choice.
  • Renew the processing certificate before it expires, and put a reminder in your calendar.

Fanann builds real iOS and Android apps from the same chat through mobile apps, with step-by-step publishing guidance. For the usual review traps, see why apps get rejected by the App Store.

Common mistakes and a pre-launch checklist

  • The button at the bottom: put it at the top of the payment options; its position is part of its value.
  • Confirming orders from the browser: confirm only after the gateway notifies your server.
  • An unfamiliar merchant name: the name on the payment sheet and bank statement must be one customers recognize, or disputes rise.
  • Forgetting shipping: if you request an address in the sheet, make sure it is saved and reaches delivery in full.
  • Not testing on real devices: a simulator does not show everything; try a real iPhone and Mac.
Ready prompt for an Apple Pay checkout

Add an Arabic-first checkout with an English option to my store. Show the official Apple Pay button at the top of the payment options only when the device supports it, then mada, cards, Tabby and Tamara. Connect the gateway and set up domain verification for the main domain and the shop subdomain. Confirm an order only when the gateway webhook confirms payment, then issue a tax invoice and send a WhatsApp confirmation. Add an internal test page that shows the domain verification status. Show me the plan before building.

Try it in Fanann

Finally, a secure checkout matters as much as a fast one; read payment security basics to keep card data out of your app.

Key takeaways

  • Apple Pay never works alone; your gateway processes the payment and deals with Apple and the banks for you.
  • A website needs a verified custom domain over HTTPS; an iOS app needs a Merchant ID and a processing certificate.
  • Show the button only when the device can pay with it, and use Apple's official button styles.
  • Apple Pay works with mada cards in Saudi Arabia if your gateway supports that route, so confirm before launch.
  • Confirm orders server-side through a webhook, never from the browser's success page.

Frequently asked questions

Does Apple Pay work with mada cards?
Yes, mada cards can be added to Apple Wallet and used to pay. Whether your site accepts them depends on your gateway supporting mada through Apple Pay, so confirm that before launch.
Do I need an Apple Developer account for Apple Pay on my website?
Usually not, if your gateway manages the Merchant ID and domain verification. For a native iOS app you do need one to create the Merchant ID and processing certificate.
Why is the Apple Pay button not showing on my website?
Common causes: the domain is not verified or the verification file was removed, the site is not on HTTPS, the browser does not support it, there is no card in Wallet, or Apple Pay is not enabled on your gateway account.
Does Apple Pay work on Android phones?
No. Apple Pay is for Apple devices only, so always offer mada, cards and Google Pay, if your gateway supports it, for Android users.
Is Apple Pay safer than typing a card?
It reduces risk because the real card number never reaches your site and the customer confirms with biometrics. You still need to confirm orders server-side and protect your accounts and keys.

Ask your AI assistant about this

Copy this prompt into the AI assistant you use, then add the details of your own case.

I am reading this guide: “Apple Pay on your website: how it works and what you need” https://fanann.com/en/blog/apple-pay-on-website/ My question: how to add apple pay to my website Use that page as a source and explain the answer step by step for my situation, tell me what to check before I start, and cite the page link.

Terms in this article

Your idea deserves to see the light.

Describe it in Arabic or English and Fanann builds, tests and ships it — no coding knowledge needed. Start free, no credit card.