1. Khalid Alaoui, iOS developer
  2. Payments
Case study

Apple Pay in, Clover out

Apple Pay integration on iOS from the payment sheet to server-side confirmation, with every order syncing to the restaurant's Clover POS terminal and the API locked down with Firebase App Check.

01 / Apple Pay

The whole path

I built the whole path: the payment sheet, authorisation, the server side that confirms it, and the failure cases nobody thinks about until a customer is standing at the counter.

02 / Clover POS

Straight to the counter

An order placed in the app syncs straight to the restaurant's Clover terminal. Staff don't need to watch a second screen, and orders don't get lost between two systems.

03 / Firebase App Check

Genuine apps only

The API answers genuine app clients and nothing else. Locking it down was my job, including the 403s I earned along the way.

iPhone
  1. Firebase App CheckOnly a genuine app build gets an answer
  2. API confirms the paymentServer-side, never trusted from the phone
  3. Order sent to CloverStraight to the restaurant's terminal
Clover

Apple Pay about 6,900 orders Card about 6,300 Gift cards a few dozen, all through the same checkout

An illustration with a sample order.

the screens around payment
Cart with loyalty points preview
CartLoyalty points preview
Checkout screen
CheckoutOrder type, time, payment

One checkout

The cart shows the points an order earns, and checkout asks for pickup or delivery, a time and a payment method. Apple Pay, card and gift cards all go through the same screen.

available

Need an iOS developer?

Freelance projects, or a full-time role, remote or with relocation.