← Back to Documentation Home

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
  1. What changed
  2. Actions required to test in your environment
  3. Not automatically repairable without external evidence/environment

What changed

  1. Flutter Checkout: After a COD/wallet order the basket retrieves GET /api/my-orders, selects its returned order ID, opens OrderConfirmScreenRoute (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.
  2. 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.
  3. 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 success with paid; it follows the server's /my-orders/{id} redirect and verifies payment_status by fetching the authenticated order list.
  4. 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.
  5. 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.
  6. Stripe Webhook: Added /api/stripe/webhook, protected by raw payload signature with STRIPE_WEBHOOK_SECRET. It validates order/user/amount/currency and idempotently settles confirmed Stripe sessions.
  7. License: Eliminated unconditional active-license success and acceptance of arbitrary UUIDs. To enable genuine Envato verification configure BOTH ENVATO_PERSONAL_TOKEN and ENVATO_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.
  8. 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.
  9. 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.
  10. 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.dart with 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 pending until the gateway confirms payment. For Stripe, register https://YOUR_DOMAIN/api/stripe/webhook, enable checkout.session.completed and checkout.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.dart to exercise the new order-response parser tests when the Flutter SDK is installed.
  • Install required PHP extensions including mbstring before php artisan test, and install Flutter/Dart SDK before running flutter 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.

FoodFeast Documentation