Skip to content
All projects

WooCommerce pharmacy platform

24hr Pharmacy

A WooCommerce pharmacy where no money moves before a doctor says yes

24hr Pharmacy wanted to sell prescription medicines online — legally, which means a prescriber must approve every order before a penny is taken. I joined as the only back-end developer, rebuilt the team when the PMs and the second developer left, and delivered the platform in 12 months: four role dashboards, 27+ online consultations, payment holds with automatic refunds, five integrations. The pharmacy went from no website to processing every order online without a manager checking payments by hand.

Role
Team Lead & Back-end Developer
Client
24hr Pharmacy, United Kingdom (via Instandart)
Timeline
Jun 2023 – May 2024
Project type
E-commerce / Healthcare
Stack
  • WordPress
  • WooCommerce
  • WooCommerce Subscriptions
  • PHP
  • ACF Pro
  • JavaScript
  • WebSockets
  • AWS

About the project

Selling prescription medicines online is not a shop with a checkout — it is a clinical process with a shop attached. Depending on the medicine, the patient completes an online consultation that a prescriber reviews, or uploads a prescription; identity is verified at registration; money is reserved at checkout and captured only after approval. Patients, doctors, pharmacists and the dispensing team each needed their own workspace. We built all of it from scratch on WordPress and WooCommerce in a year, and the pharmacy started handling orders online for the first time.

My role

Team Lead & Back-end Developer

I came in as the back-end developer and ended up running the engineering side. When the project managers were taken off the project and the second developer left, I recommended a front-end developer, ran the technical interviews, hired a back-end developer and onboarded both. I wrote the parts where mistakes cost money — the prescription workflow, payment holds and refunds, every integration, the chat — while planning the board, reviewing code and keeping the team on schedule. Client calls I ran together with our director.

  • Team lead
  • Hiring & onboarding
  • Back-end architecture
  • WooCommerce
  • Payments & integrations
  • Client communication

What the business got

  • Orders online, no manual payment checks

    Payment capture and refunds follow the prescriber’s decision automatically — the pharmacy launched online without a manager reconciling money by hand.

  • A regulated flow the client runs alone

    27+ consultations and the product catalogue are maintained in the admin; new medicines need no developer.

  • Delivered in 12 months with a team I built

    From sole developer to a working team of four — hired, onboarded and shipped on schedule.

  • One fulfilment flow across 5 services

    Payment, identity checks, two couriers and doctors’ calendars act on the same order status, so nothing is chased by hand.

Team & ownership

  • I owned

    • Hiring, onboarding and day-to-day leadership of the dev team
    • Estimates, planning on the Kanban board, code review
    • Back-end architecture and the prescription / consultation workflow
    • Worldpay holds, captures and refunds; DPD, Royal Mail, LexisNexis, Google Calendar
    • Subscriptions and the real-time patient–doctor chat
    • Client calls together with our director
  • I led

    • Task planning on a Kanban board
    • Code review and code quality
    • 3 technical interviews and hiring
    • Onboarding of two developers
    • Deadlines and delivery
  • Team delivered

    • Interface design for every dashboard
    • Front-end and responsive layouts
    • Additional back-end features

How an order works

  1. Consultation

    The patient, already ID-checked at registration, completes an online consultation or uploads a prescription from their doctor.

    • LexisNexis
  2. On hold

    At checkout Worldpay reserves the amount on the card. The money is blocked, not taken.

    • Worldpay
  3. Review

    A prescriber reviews the answers or the prescription and can message the patient if something needs clarifying.

    • Chat
  4. Approved

    Approved orders move on; a rejected request releases the money back to the patient automatically.

  5. Charged & dispatched

    The payment is captured, and the dispensing team confirms orders in bulk and prints courier labels.

    • DPD / Royal Mail
  6. Delivered

    The patient follows the status and tracking in their account, along with the full order history.

What I did

  • Four role dashboards

    Patients, doctors, pharmacists and the dispensing team each work in their own account — requests by status, patient records, bulk order confirmation and label printing.

  • Payment that waits for approval

    Worldpay reserves the amount at checkout; it is captured after the prescriber approves or refunded automatically on rejection. No manager touches payments.

  • 27+ consultations the client edits

    A separate questionnaire per condition, all editable in the admin, so the pharmacy adds medicines without a developer.

  • Team rebuilt mid-project

    Two developers interviewed, hired and onboarded by me; estimates and delivery stayed on track through the change.

Project screens

Technical challenges & solutions

  • Payment must wait for a prescriber

    Standard WooCommerce charges the card as soon as the cart is valid. A pharmacy can’t: a prescription order needs a clinical review first, and some requests are rejected.

    Pre-authorisation at checkout plus custom order statuses — pending review, waiting for response, approved, rejected. Capture runs on approval and an automatic refund on rejection, so money only moves when a prescriber says yes.

  • Owned logic instead of a plugin pile

    Roles, custom statuses, questionnaires and fulfilment rules could each be “solved” with another plugin — all hooking into the same checkout, stock and payment flow with unpredictable results.

    The core business rules live in our own code that we test and understand; commodity features stay on well-maintained plugins such as WooCommerce Subscriptions.

  • One flow across five services

    Payments, identity checks, two couriers and doctors’ calendars each have their own API and rules, and all of them had to agree on the state of an order.

    The order status drives everything: capture or refund in Worldpay, DPD and Royal Mail labels, notifications to the patient — nobody chases an order by hand.

What I bring to your team

  1. I hire and onboard, not just code

    On this project I rebuilt the team mid-way: interviews, selection, onboarding, estimate reviews. A team lead who has done this once will do it again without drama.

  2. Money paths get tests first

    Holds, captures, refunds and status changes are where mistakes are expensive. I start automated coverage there, before anything cosmetic.

  3. Business rules get written down as we learn them

    We dug into pharmacy regulation together with the client; next time those rules go into docs immediately, so every new developer is productive in days.

Get in touch

Hiring for a WordPress role?

Send me the job description or a few lines about the team and the stack — I’ll get back to you within 1–2 business days.