FoodFeast source code repair notes — 24 October 2026
FoodFeast source code repair notes — 24 October 2026
FoodFeast source code repair notes — 24 October 2026
On this page
What changed
- Flutter Checkout: After a COD/wallet order the basket retrieves
GET /api/my-orders, selects its returned order ID, opensOrderConfirmScreenRoute(the existing order tracking/details page) and selects Orders tab 2. Falls back to the Orders tab with a refresh hint if the order cannot yet be loaded. - Flutter Orders: Reload when entering the Orders tab; display API/auth failures with a Retry button instead of an empty order screen; robust order/item parsing no longer discards every order because a nested product/store field is unexpected. Card data uses server orders, not static examples.
- Flutter Payments: Gateway checkout now uses the local backend order ID. Checkout is guarded against double-taps; network timeouts no longer automatically retry a non-idempotent POST. The payment WebView does not equate any URL containing
successwith paid; it follows the server's/my-orders/{id}redirect and verifiespayment_statusby fetching the authenticated order list. - Website Checkout: Sends
delivery_type=delivery, handles Stripe and PayPal hosted approval URLs, verifies HTTPS and approved hostname, and does not claim payment completed simply because a payment session was initiated. - Laravel Checkout: Validates address ownership, enabled gateways, delivery type, one store per cart; rejects gateway initiation failures without committing an order or deleting the cart. Early validation failures now roll back the transaction.
- Stripe Webhook: Added
/api/stripe/webhook, protected by raw payload signature withSTRIPE_WEBHOOK_SECRET. It validates order/user/amount/currency and idempotently settles confirmed Stripe sessions. - License: Eliminated unconditional active-license success and acceptance of arbitrary UUIDs. To enable genuine Envato verification configure BOTH
ENVATO_PERSONAL_TOKENandENVATO_ITEM_ID. Existing registered licenses continue to count as active, but new registration will fail closed when Envato verification is unconfigured. An unreleased marketplace item has no valid listing ID yet. - Currency: Stripe/PayPal charging code is USD-only; the gateway now rejects business currency settings other than USD rather than charging wrong currency amounts. This does not add currency conversion.
- First-install reliability: Onboarding now stops and reports a safe error if migration or database seeding fails instead of advancing with a broken database. Disabled gateway flags are correctly parsed even when stored as a boolean false. Checkout no longer includes raw server exception details in production responses.
- Buyer docs: Corrected the location of the sample SQL import. Do not rely on the snapshot until it has been reconciled with migrations.
Actions required to test in your environment
- Configure Flutter's
lib/app/constants/app_constants.dartwith a stable HTTPS Laravel API and media URL; the archive still contains the original temporary ngrok URL and will stop working when that tunnel expires. - Start Laravel with a real configured MySQL database. Run migrations on a disposable test database, seed demo records, sign in a customer, add a product, select a delivery address and choose COD. Place an order; verify the Orders tab and tracking/details screen show the exact newly created order ID. Restart app; open Orders again and confirm the same order persists.
- Run Stripe and PayPal sandbox checkout; verify payment remains
pendinguntil the gateway confirms payment. For Stripe, registerhttps://YOUR_DOMAIN/api/stripe/webhook, enablecheckout.session.completedandcheckout.session.async_payment_succeeded, and configure the matching webhook signing secret. Send invalid signatures to confirm rejection, then valid test events; deliver the same event twice and verify a single settlement. - Test failures including offline checkout, timeout, disabled gateway, bad address ownership, insufficient wallet balance, mixed-store carts, wrong currency, and zero/missing order ID. Check for duplicate orders and accidental cart clearing.
- Run
flutter test test/order_checkout_regression_test.dartto exercise the new order-response parser tests when the Flutter SDK is installed. - Install required PHP extensions including
mbstringbeforephp artisan test, and install Flutter/Dart SDK before runningflutter analyze/flutter test/ building APK/IPA.
Not automatically repairable without external evidence/environment
- Server database snapshot vs migration schema, PayPal and Stripe sandbox credentials, Firebase/Google Maps integrations, real mobile/device builds, copyrighted screenshot replacement, and hard CodeCanyon rejection/product differentiation need separate staging, authoritative assets or commercial decisions.
- The website output and PHP syntax are build-level checks only; the end-to-end order/payment flow is not proven until tested against a running server and providers.
Marketplace warning: The October 23, 2026 hard rejection cannot be overcome merely by patching source files and re-uploading the same item.