Before
The site was custom PHP, not WordPress, written by a previous developer. The engine worked, my audit on September 2 took test payments through all four order flows, To-Go, Breakfast, Lunch/Dinner and Weekly Meals. The front end was the problem. The JavaScript was one 83 KB minified file with no source, and the English and Portuguese templates were near-duplicates, 600 to 800 lines each. Some of the work was manual too, staff phoned customers to ask if they'd be home for delivery, and the shopping lists were put together by hand.
What I did
The plan was a new UI on the old contract. The new checkout screens call the same endpoints, so the payment engine stays as it was. I rebuilt Breakfast and Lunch/Dinner on September 4 and To-Go on September 9, with one shared checkout script and proper English and Portuguese strings.
Customers now pick a delivery date and shift, and the server checks it before charging the card. That replaced the phone calls.
A shopping-list module sends the chef a list built from the orders. It only reads orders, in plain PHP and MySQL, and never touches prices, commissions or the agenda, so it can't affect the money side. When a customer uploads a diet file on Weekly Balance, it is attached to an internal email straight from the temporary upload and then deleted. The site does not write that file to its disk or its database. The copy that remains is the one in the email.
How it holds up
I hardened the payment path. The webhook rejects unsigned requests, and a safety net makes sure a successful charge always ends up as an order. A watchdog flags any paid order with no confirmation email after 30 minutes and shows a banner in the admin. Scheduled jobs need a secret header, and sessions and reset tokens got a pass as well.
The CI gate checks PHP syntax, Twig templates and the Composer file. There's no automated test suite, so I run a 26-row acceptance checklist on staging instead. It's a gap, and I'd rather say so.
Where it stands
It runs on a staging site with Stripe in test mode. The move to production is next, the real database, the client's mail setup, live Stripe keys and a joint acceptance test with the client.