Skip to content

Membership, sport & eCommerce · Case study

Rebuilding a golf association’s system of record, books included, in twelve weeks

Members, outings, bookings, an online shop, payments and post-event reconciliation had outgrown a plugin-stitched WordPress site. We replaced it with one purpose-built platform, migrated every record, and closed the books to the cent on a national outing for an association of nearly 500 members.

Client
National golf association
Duration
12 weeks to launch, ongoing support
Services
Custom Software Development, Web Application Development, Cloud, DevOps & Modernization

Outcomes

From first commit to the live site
12 weeksFrom first commit to the live site
Historical bookings migrated, with 475 members and their balances
2,434Historical bookings migrated, with 475 members and their balances
Reconciliation of a national outing, audited line by line
To the centReconciliation of a national outing, audited line by line
Database tables verified identical when the rehearsed system went live
70 of 70Database tables verified identical when the rehearsed system went live

The challenge

What we were handed

The association’s year runs on its outings: multi-day national events where members book rounds across several courses, hotel nights, a gala dinner, guests and apparel, then pay over weeks through PayPal. The old site stitched that together from a theme, a page builder, an events plugin, a commerce plugin, a profile plugin and a gallery plugin, none of which agreed on who a member was or what they owed. After each outing a volunteer committee had to work out the money outside the system: what every member paid, what the hotel and courses really charged, and who was owed a refund. Hundreds of member accounts, years of tournament results and every wallet balance lived inside that stack, and none of it could be lost.

Money first

A ledger nobody can quietly edit

Before a single page was designed, we decided how money behaves. Every amount is stored in whole cents. A member’s wallet is an append-only ledger: a mistake is corrected with a compensating entry, never by rewriting history, and the balance is always derived from the entries. Prices are snapshotted onto each booking, so changing an outing’s price can never change what someone already agreed to pay.

PayPal retries its notifications, so every payment webhook is idempotent. Booking references come from a per-outing counter that never reuses a number, so money that arrives late always finds the booking it was meant for.

Migration

An import built to run twice

We read the legacy database table by table and corrected our data model against what the old system actually stored, not what its screens implied. 475 members and their photographs, 469 wallet balances (with the old system’s sign convention flipped), 26 outings and 2,434 historical bookings came across, along with 257 tournament results going back to 2018 from the committee’s own workbook.

Members’ existing passwords kept working, including the newer WordPress hash format, so nobody had to reset anything on launch day. The import was designed to be re-run from a fresh export at cutover, with a verification check after every load.

Reconciliation

Closing the books to the cent

This is the part the committee cared about most. After an outing the platform takes what actually reached PayPal, pairs holds with their releases, and lines every member’s payments up against the real costs: course fees split by course, hotel folios, food and event costs, apparel, each in a named category the committee controls.

Savings and overruns are shared only among the members who attended, using the method the committee picks for each outing, and leftover cents are allocated one at a time by a fixed rule so every environment gives an identical answer. The committee confirms by typing FINALIZE, then sends each member a statement with the full reconciliation attached. On the first national outing run through it, a line-by-line audit against hotel folios and payment records found the arithmetic correct to the cent.

eCommerce

A new shop, built in rather than bolted on

The old site sold apparel and memorabilia through a commerce plugin that knew nothing about members, outings or what anyone owed. We retired it and built a new storefront as part of the platform itself: a browsable catalogue, product pages with size and colour options, a basket that follows the member between devices, checkout from their wallet balance or through PayPal, and an order history in their account.

Behind it sits a back office the committee runs without a developer. Products have variants, stock levels, sale prices and draft or live status; categories and shipping rates are theirs to set. The orders screen records payment, marks an order shipped with its carrier and tracking number, and cancels with an automatic refund to the member’s balance.

The engineering is the same as for bookings. One pricing function feeds the basket, the checkout and the order record, so the figure on screen and the figure charged can never disagree. Each order is placed in a single transaction covering stock, order, wallet entry and basket, and stock is taken down conditionally, so two members can never both buy the last shirt.

Because the shop and the outings share one wallet, commerce and events stop being separate businesses. Apparel ordered with an outing booking flows straight into that outing’s reconciliation, a member who cancels is asked whether they’re keeping their shirt, and members who can’t attend can still buy the outing’s apparel. The committee can register a whole list of them in one step, charging each account.

Security

Modern security, without asking members to do anything

The old site’s safety depended on a theme and half a dozen plugins all being kept up to date. The new platform is one application with a much smaller surface, and every server action checks who is calling it rather than trusting the page that showed the form.

Members’ old password hashes, in both WordPress formats, are verified once at their next sign-in, upgraded to argon2id (the current recommended standard), and the weak hash is discarded. Nobody had to reset anything. Sign-in, password reset and registration are rate limited per account and per visitor; a lockout emails the member, a reset lifts it, and the committee can unlock an account from the member’s page. A failed sign-in takes the same time whether or not the account exists, so the form can’t be used to find out who is a member.

Dates of birth are encrypted at rest and shown to nobody, and photographs sit in private storage. Every page sends modern security headers, sign-in redirects only ever lead back to the site, and payment and email webhooks are signature-checked and safe to receive twice. The contact form stops spam bots without reCAPTCHA, so visitors aren’t routed through Google to ask a question, and its rate limit counts a hashed address rather than storing anyone’s IP.

Every change is accountable. An activity log shows who changed what, with before and after side by side, where they were and on what browser, and each member has a sign-in history that includes failed attempts. Irreversible actions, like finalising a reconciliation or emailing the whole membership, require a typed confirmation, and the staging site sits behind sign-in.

The weekend itself

Built around how the committee really works

A pairings engine draws fourballs for every round, seating low handicaps beside high ones for pace of play, keeping two first-timers out of the same group and honouring the committee’s exclusion list. The booking report, a printable info sheet for each member, a roll of honour and every outgoing email are produced or edited by the committee themselves, without a developer.

The rules that used to be chased by phone are now automatic: an unpaid booking gets a reminder at 24 hours and releases its place at 48, old balances are settled with the next booking, and credit is applied when the member chooses to use it.

The approach

How we worked the problem

  1. Read the legacy database before designing anything, and corrected the data model against what the old system actually stored

  2. Designed the money model first: integer cents, an append-only wallet ledger, prices snapshotted onto bookings, and idempotent payment webhooks

  3. Migrated every member, balance, outing and booking with a repeatable import, then re-ran it from a cutover-day export

  4. Built the committee’s workflow end to end: bookings, the shop, pairings, info sheets, self-edited emails, and reconciliation with member statements

  5. Brought security up to current practice: argon2id password upgrades at sign-in, rate-limited authentication, security headers, encrypted personal data and a full audit trail

  6. Rehearsed on separate staging and production environments, copied the rehearsed system to live with every table verified, and switched over with the old site frozen as a fallback

AI-assisted delivery

How AI made twelve weeks possible

One senior Stemdot engineer delivered this with an AI coding agent. The agent took the volume of the work, so the engineer’s time went on judgement: what the rules should be, and whether the numbers were right.

The agent did

  • Read the entire legacy database, from member accounts and years of wallet history to every historical booking, and drafted the migration
  • Wrote the code and its tests together: more than 750 automated tests, many asserted against real rows from the legacy data
  • Audited reconciliation output line by line against hotel folios and payment records
  • Kept a running record of every decision and pitfall in the repository, so nothing lived only in someone’s head

People decided

  • Every rule about money was agreed with the committee before it shipped, then pinned down in a test
  • Architecture, data protection and the cutover plan
  • Member records and password hashes never entered the codebase
  • Every change went through staging, rehearsed against a copy of real data, before production

Timeline

Week by week

  1. Weeks 1–2Foundation and migrationData model checked against the legacy dump, membership and sign-in, the wallet ledger, bookings, the shop and the admin. By the end of week two every member, balance, outing and historical booking had come across.
  2. Weeks 3–6Running an outingMembers directory and regions, the roll of honour, the booking report, the pairings engine and the printable info sheet.
  3. Weeks 7–10The moneyReconciliation against real PayPal records, a funds ledger for the association’s own money, cost categories, member statements, and an audit of every imported booking against the old site’s payments.
  4. Weeks 9–11Production readinessStaging and production environments, committee-editable emails, file storage for photographs, broadcast email with unsubscribe, and a full rehearsal of the move to live.
  5. Week 12LiveRehearsed system copied to live and verified, domain switched, inbound email forwarding, security hardening, and the first automated booking rules.

The outcome

Where it landed

  • From first commit to the live site12 weeks
  • Historical bookings migrated, with 475 members and their balances2,434
  • Reconciliation of a national outing, audited line by lineTo the cent
  • Database tables verified identical when the rehearsed system went live70 of 70

Similar problem?

Most of our work starts with a call like this.

If you’re facing something like this membership, sport & ecommerce engagement, a 30-minute conversation with Stemdot will tell you whether the approach transfers.

We reply within one business day. No pitch decks, no discovery-call gauntlet.