
You just need to deploy this file to the web server(s) hosting your domain so Apple can perform a one-time request to verify that the file can be found at your domain. This is just a text file that verifies the association between your domain and your merchant ID. This involves entering a domain name into the Apple Pay Developer Portal for the merchant identifier you want to set up Apple Pay on the web for – where you then get a file to download. The first step in getting a Merchant Identify Certificate is to validate a domain.
This is used to perform two-way TLS authentication between our servers and the Apple Pay servers to validate the merchant session when the Apple Pay sheet is first displayed on a device. To get up and running and coding end-to-end, we need just need a Merchant Identity Certificate. We use a third-party payment provider to offload our payment processing, and internal APIs for passing an Apple Pay token for processing via our payment provider already exists for handling iOS payments, so the website can integrate with those as well.
We also do not need to worry about decrypting Apple Pay payment tokens ourselves. We already have an Apple developer account and a merchant identifier via our iOS app development, and the Just Eat website is already served over HTTPS, so we have a valid SSL/TLS certificate.
A validated domain name to prove a merchant owns a given domainĪs we already use Apple Pay here at Just Eat, the first few steps for getting up and running have already been achieved. For the web things are a little different.ĭue to the more loosely-coupled nature of the integration, instead trust between the merchant (Just Eat in our case) and Apple is provided through some additional means: In the iOS world, due to the App Store review process and signed entitlements, once your app is in users’ hands you just use PassKit to get coding to accept payments. Our mission is to make food discovery exciting for everyone – and supporting Apple Pay for payment will make your experience even more dynamic and friction-free.Īlberto from our iOS team wrote a post about how we introduced Apple Pay into our iOS app last year, and this post follows on from that journey with a write-up of how we went about making Apple Pay available on our website to iOS and macOS users with the new Apple Pay JS SDK. We wanted to again be one of the first websites to support Apple Pay on the web by making it available within .uk. Just Eat was a launch partner when Apple Pay was released in the UK in our iOS app in 2015. No longer just for apps and Wallet on TouchID compatible iOS devices and the Apple Watch, it would also be coming to Safari in iOS 10 and macOS Sierra in September 2016. Introductionīack in June at WWDC, Apple announced that Apple Pay was expanding its reach.