Website ↗

A good beginning.
A beautiful app.

Everything you need to bring your WooCommerce store to WooApp—from the first plugin upload to your own branded app release.

Your WooApp toolkit.

This handbook covers WooApp, plugin 2.0.1 and app source 2.0.1+3. Your download includes the Flutter app source, installable WordPress plugin and this handbook. Developed by Tqniyati.

AI Assistance Disclosure

AI-assisted tools were used in creating WooApp in the following areas:

  • Code: AI assisted with generating, refactoring and refining portions of the Flutter app and its WordPress plugin code.
  • Documentation: AI assisted with drafting, organizing and editing portions of the HTML documentation and setup instructions.
  • Graphics: Some demonstration and promotional images were generated with AI, including supporting artwork backgrounds. App and WordPress plugin screenshots show the actual product interface.

WooApp is developed and maintained by Tqniyati. Editable app and plugin source is included for buyer customization.

01 / START WITH A CONNECTION

Your first connection

WooApp uses the WooCommerce store you already manage. Your developer connects that store at build time. Shoppers open your app and see your store directly; there is no store selector or demo mode in customer builds.

  1. Unzip your complete download. Locate the inner plugin ZIP and Flutter source ZIP. Keep the plugin ZIP compressed for WordPress.
  2. Prepare the store. Confirm the requirements, products, stock, shipping and policies on a staging copy first.
  3. Upload and activate the plugin. Use Plugins → Add Plugin → Upload Plugin, then open WooApp → WooApp. Look for Setup: Ready.
  4. Check the public connection. Visit https://your-store.com/wp-json/wooapp/v1/bootstrap. A JSON response with data.api_version, data.features.native_auth: true and data.checkout.ready: true confirms discovery.
  5. Set up Flutter and preview. Extract the Flutter source, open its mobile folder and run the commands below with your real store URL.
  6. Personalize and test. Update branding and home content in WordPress, then refresh the app. Configure payment accounts and test signed native builds before submitting to the stores.
flutter pub get
flutter run -d chrome --web-port 8090 --dart-define=STORE_URL=https://your-store.com
For browser previews on another origin

Your host must allow the preview origin and the app’s REST request headers. Native apps do not use browser CORS. Start with the connection guide; never put administrator API keys in the app.

02 / THE RIGHT FOUNDATION

Requirements & compatibility

Use the compatibility requirements below to prepare your store and development tools. Keep a staging copy for store upgrades and merchant-specific customizations.

Component Compatibility What to prepare
WordPress Requires 7.1+ · reference 7.1.3 A working single-site installation
WooCommerce Requires 11.2+ · reference 11.2.1 Catalog, currency, tax and shipping configured
PHP 8.3 minimum REST endpoints and HTTPS available
Order storage HPOS and classic WooCommerce order storage
Flutter / Dart 3.35.5 / 3.9.2 Use the included dependency lockfile
Android Minimum SDK 24; compile/target SDK 36 Android tooling and your own release signing
iOS Deployment target 14.0 macOS, Xcode, CocoaPods and Apple signing
Store connection Canonical HTTPS URL Valid certificate, no login wall on public APIs

Supported commerce scope

WooApp supports simple and variable physical products, English and left-to-right layouts. Catalog search, sorting and pagination, galleries, variations, favorites, cart, coupons, delivery, customer accounts and order history are implemented. Checkout currently uses one address for both billing and delivery.

Check specialized stores before purchase.

Subscriptions, bundles, memberships, marketplace plugins, custom required checkout fields, separate checkout billing/delivery forms, multilingual / RTL, push notifications and digital-purchase policy integrations are outside the current completed scope. Multisite is unsupported. Contact support with your exact extensions and versions for an assessment.

Store APIs must be reachable without an administrator login. Security plugins, firewalls and caching layers must permit customer bearer sessions, WooCommerce cart tokens and checkout requests. Keep customer and checkout responses out of public caches.

03 / A PLACE FOR EVERYTHING

Inside your download

The complete buyer download contains the source archive, installable plugin and this offline handbook. Extract the outer archive on your computer. Upload only the inner WordPress plugin ZIP to WordPress.

wooapp-2.0.1/
├── START-HERE.html
├── documentation/
│   ├── index.html
│   ├── docs.css + docs.js
│   └── assets/                 # Screenshots, fonts and diagrams
├── wordpress-plugin/
│   └── wooapp-2.0.1.zip
├── flutter-source/
│   └── wooapp-flutter-2.0.1.zip
├── RELEASE-NOTES.txt
└── SHA256SUMS.txt

Extracting the Flutter ZIP gives you mobile/, with Android and iOS projects, Flutter source, assets, tests and the locked dependencies. It does not contain installed dependencies, local environment files, signing keys, developer credentials or compiled APK / IPA files. Those are generated for your own app identity.

Documentation that travels with you.

Open documentation/index.html directly in a browser. Navigation, search, diagrams and screenshots work offline. External links to provider documentation and support require an internet connection. Keep the adjacent assets folder with the HTML.

04 / THE WORDPRESS SIDE

Install the WordPress plugin

  1. Prepare a backup and staging store. Confirm your store’s supported WordPress, WooCommerce and PHP versions.
  2. Sign in to WordPress as an administrator. Open Plugins → Add Plugin and choose Upload Plugin.
  3. Select the inner ZIP. Choose wordpress-plugin/wooapp-2.0.1.zip from your extracted buyer download. Do not select the entire buyer download or the Flutter ZIP.
  4. Choose Install Now, then Activate Plugin. In the plugin list, the display name is WooApp. The merchant menu is WooApp.
  5. Check the setup status. Open WooApp → WooApp. It should report Setup: Ready. Resolve dependency or schema errors here before continuing.
  6. Verify discovery. Visit your store’s /wp-json/wooapp/v1/bootstrap endpoint. If routing fails, review Settings → Permalinks, the web server and security restrictions.
1. Upload the inner plugin ZIP through WordPress. The screenshot shows a local staging installation.
2. Confirm Setup: Ready in the WooApp dashboard. Other plugins’ notices may appear above it.

Know your WooApp menu

Page Purpose Who uses it
WooApp Version, dependencies and setup readiness Administrator
Home builder Product collections, layouts and section ordering Store manager / administrator
Banners Image/video heroes, destinations and order Store manager / administrator
General settings Logo, size, tagline, typography and palette Store manager / administrator
Native payments Dedicated app payment credentials and mode Administrator

If a host blocks browser uploads, ask the host to install the plugin folder under wp-content/plugins/wooapp/, then activate it in WordPress. Preserve the folder name. Upload-limit changes belong to hosting/PHP settings, not the Flutter app.

05 / ONE ADDRESS. YOUR WHOLE STORE.

Connect the app to your store

Your developer supplies STORE_URL when running or building the Flutter app. Use the canonical public HTTPS address of the WordPress installation, including a subdirectory if WordPress lives in one. Do not append /wp-admin, /wp-json or an endpoint.

✓ CORRECThttps://shop.example.comhttps://example.com/store
CHECK YOUR ADDRESShttps://example.com/wp-adminhttps://example.com/wp-json/...
  1. Open the connection endpoint in your browser. Replace the example domain below with your WordPress address. A data envelope with the store and feature configuration should load without logging in.
  2. Use the final URL after redirects. Check HTTPS and www/non-www choices. The app avoids following unexpected API redirects; do not rely on a redirect to correct an incorrect store address.
  3. Run the app with the same base URL. Set the flag on every run/build, or use your own private build script to supply it consistently.
  4. Refresh the app home after WordPress edits. Branding and collections load from the store. Switching the destination store requires a new app build.
https://your-store.com/wp-json/wooapp/v1/bootstrap

flutter run -d chrome --web-port 8090 --dart-define=STORE_URL=https://your-store.com
flutter build apk --dart-define=STORE_URL=https://your-store.com
flutter build ipa --dart-define=STORE_URL=https://your-store.com

The ipa command requires macOS and signing setup. The apk command above is a build recipe, not a claim that your release is already signed for Google Play. Follow the platform release sections.

Only a store URL belongs in the client.

Do not add WordPress administrator passwords, WooCommerce consumer secrets, Stripe secrets or PayPal secrets to Dart source or build flags. The plugin handles customer sessions and native payment server operations. No merchant WooCommerce REST API key needs to be embedded in the app.

Browser preview and CORS

A browser-served Flutter app needs permission from your store to make cross-origin REST requests. Configure an exact preview origin at the web server or in a host-maintained WordPress integration. Allow Authorization, Content-Type, Cart-Token and Idempotency-Key, allow preflight requests, and expose Cart-Token. Avoid wildcard access for authenticated customer endpoints. The bundled WordPress plugin does not automatically grant arbitrary preview origins.

The development Docker store already permits the local Flutter origin on port 8090 through a separate, development-only MU plugin. That development helper is not included in the buyer’s installable plugin. The website showcase runs at port 8091 but embeds its app through the same-origin /demo/ path; its local development origin is also explicitly allowed.

If the URL is missing or unreachable

An unset URL displays a configuration error. An unreachable or incompatible store displays an error and retry control. An empty store displays the normal empty catalog. Customer builds contain no demo catalog and offer no connection selector.

06 / MAKE IT UNMISTAKABLY YOURS

Logo, colors & typography

Open WooApp → General settings. This page changes the in-app storefront header and visual theme; it does not change the installed app’s launcher icon, package name or operating-system display name.

  1. Upload your logo. Choose Change logo and use the WordPress media library. Use a transparent PNG or WebP. For a horizontal wordmark, prepare approximately 720 × 176 px (about 4:1); for a square symbol use 264 × 264 px. Export at 3× the intended display size for crisp phone screens, crop excessive transparent padding, and aim for under 150 KB (keep below 300 KB). These are preparation recommendations, not upload restrictions. SVG is not accepted by WooApp’s logo picker. Keep the original aspect ratio; do not stretch a square logo into a wordmark. Without a selected logo, the store name is used.
  2. Set its size. Adjust Logo height (24–88 px) and Maximum logo width (80–240 px). Both act as constraints so the image keeps its aspect ratio. Preview the result at narrow phone widths.
  3. Write your header tagline. Keep it short and readable. The field accepts up to 70 characters.
  4. Choose a font style. Editorial pairs DM Sans with Cormorant headings. Modern sans uses DM Sans throughout. System sans follows the platform’s default font.
  5. Select a complete palette. Olive & citrus, Coastal blue, Soft rose, Warm earth, Lavender dusk and Quiet monochrome coordinate the background, text, buttons, borders and accents.
  6. Save settings. Refresh the app home to retrieve the updated branding. If the page says settings changed elsewhere, reload it and apply your edits to the latest saved version.
Logo and tagline controls in WordPress. These are merchant settings, not a developer connection screen.
Bundled typography and complete color sets. Changes apply after saving and refreshing the app.
Choose from the bundled font styles in the same settings page.
Olive & citrusCoastal blueSoft roseWarm earthLavender duskQuiet monochrome

App name, icon and splash

For your own release, set the Android application label in android/app/src/main/AndroidManifest.xml and iOS CFBundleDisplayName in ios/Runner/Info.plist. Replace Android launcher/adaptive assets and the iOS AppIcon asset set with your brand’s platform-specific exports. The included tool/generate_brand_assets.dart generates WooApp’s monogram; customize it before using it for another brand. Review launcher and splash assets on a real device. The initial app splash uses a neutral white background.

07 / CURATE A HOME WORTH OPENING

The visual home builder

Open WooApp → Home builder. The app keeps its header, hero banners and category strip above the product collections you curate here.

  1. Add a section. Choose + Add section. Give the collection a descriptive title and, optionally, a subtitle.
  2. Choose the layout. Grid gives you two columns; Carousel creates a horizontal product rail; Compact list gives each item a clear row. Mix layouts to vary the page rhythm.
  3. Search for products. Type a product name or exact SKU in the product search. Select the matching products instead of looking up IDs. Use the next-page control when more matches are available.
  4. Arrange the collection. Drag selected products or use the move arrows. Remove an item from the section without deleting the WooCommerce product.
  5. Arrange the page. Drag sections in the left list or use their up/down arrows. Toggle Visible in app to hide a collection while keeping its saved configuration.
  6. Save home page. Refresh the app. The preview is a layout guide; the real app resolves current product data and prices from WooCommerce.
Search, curate and reorder inside WordPress. Click any guide screenshot to enlarge it.
GridFor an easy-to-scan collection.
CarouselFor a swipe through your favorites.
Compact listFor a focused look at each product.

Limits: up to 20 sections and 100 products per section. Use smaller, focused collections for a better first screen. When no usable collection layout is configured, the app can show its latest-products collection. A missing or empty store is never replaced with a bundled demo catalog.

08 / SET THE SCENE

Image & video banners

Open WooApp → Banners. The order in the left panel is the order customers see in the hero. Make a video banner the first item if you want motion to lead the home page.

  1. Add a banner. Choose + Add banner. Enter a headline, supporting text and small label, keeping text short enough for a phone.
  2. Choose Image or Video. Select your image through the media library. For a video, select both the video file and a poster image. The poster is shown while loading, when motion is reduced, or when playback cannot start.
  3. Give it a destination. Choose no link, a product, a category or a store search. Product/category destinations use search selection; no manual ID is needed. Add a short button label.
  4. Set visibility and order. Drag the banners or use the move controls. Only the active slide’s video plays. You can duplicate a banner to create a related story.
  5. Save banners. Refresh the app and test every destination. Saved banner removals can be found in WordPress Trash.
The first banner is a video with a poster. Destinations are selected by name.

Media that loads well

Choose sharp, compressed images with a clear focal point. Hero images are cropped to fill their frame, so keep essential details away from the edges. H.264 MP4 is a practical starting point for video; actual codec and autoplay behavior depend on the device/browser. Keep hero clips short, compress them, use HTTPS media URLs and provide a readable poster.

Videos begin muted and loop on the active slide. They pause when hidden or when leaving the route. Reduced-motion users initially see the poster and may play explicitly. Customers control slides through swipes, dots or arrows; there is no timed slide rotation. Test slow loading and playback failure as well as the happy path.

09 / YOUR STORE IS THE SOURCE OF TRUTH

Catalog, shipping & checkout

Prepare your products

  1. Use published, visible products. Add meaningful descriptions, prices, category assignments and stock settings in WooCommerce.
  2. Add good product images. The gallery uses the full product image list. Supply clear primary and gallery photos. Category thumbnails are managed under Products → Categories.
  3. Finish your variations. Configure attributes, variation combinations, prices and stock. Verify that each intended choice can actually be purchased on the website and in the app.
  4. Check promotions. Configure sale prices and coupons in WooCommerce; test eligibility, expiry and minimum spend with the app’s server-calculated totals.

Configure checkout in WooCommerce

Review WooCommerce → Settings for your currency, allowed selling/shipping countries, shipping zones and rates, tax rules, guest checkout, account creation and policy pages. In the app, entering an address prompts the server to calculate eligible delivery options. Rates may change the final total. No matching shipping rate must be resolved in the store, not bypassed by the app.

1 / AddressContact details and country-specific fields
2 / DeliveryStore-calculated rates for each package
3 / PaymentAvailable methods, clear total and consent

The cart displays product totals, discounts, shipping, named fees, tax and the final WooCommerce total. Stock limits and quantity restrictions apply. Coupons can be applied and removed with visible server errors. The current checkout collects one shared billing and delivery address.

Interrupted orders and recovery

If payment or the network is interrupted after an order attempt is retained, the app offers to resume that original attempt. Use that recovery action; do not create a new order just because a provider screen closed. The backend verifies provider status before treating an order as paid. Cash on delivery is recorded as unpaid at confirmation. Orders needing manual review are explicitly distinguished.

Customer accounts

The app supports store-enabled registration, sign-in, password recovery, profile changes, address book, order history, downloads, reviews and email-confirmed account deletion. Customers sign in with their own account, not a WordPress administrator/store-manager account. Configure reliable WordPress email delivery for recovery and confirmation messages. Browser-preview sessions live only in memory and are cleared on reload.

CUSTOMER PRIVACY

Account deletion and retained order data

What the customer does

  1. Sign in, open You → Request account deletion, read the consequences and enter the current password.
  2. WooApp sends a WordPress confirmation email to the account's existing email address. Open its link to confirm permanent account deletion. Without confirmation, the account remains active. Invalid or expired links cannot authorize deletion; contact the store for help with an earlier pending request or a fresh confirmation.
  3. After a valid confirmation, WooApp immediately deletes the WordPress customer login, saved addresses and app favorites, and invalidates app and WordPress sessions. The confirmation page states whether deletion completed. Sign in again is no longer possible with that account.

The confirmation applies only to the customer identity bound to that app request. Privileged merchant accounts are excluded. If the email address or account permissions change while a request is pending, the store must verify the request instead of deleting a different identity.

What remains and why

Account deletion preserves WooCommerce orders and their financial status, detaches the deleted customer ID and retains records needed for fulfillment, refunds, accounting or other applicable obligations. Deleting a login is separate from erasing personal information in retained order records or other plugins. Publish the data categories, reasons and retention periods in your store privacy policy, and provide a working privacy contact. Do not promise that every order record disappears when an account is deleted.

Merchant operating procedure and timeframe

  1. Before launch, configure reliable transactional email, the store privacy-policy page and WooCommerce's Settings → Accounts & Privacy personal-data removal and retention options. Review your other installed plugins' privacy exporters/erasers as well.
  2. Assign a staff member to review Tools → Erase Personal Data each business day. An app request remains Confirmed after the login is deleted so that this additional data review is not silently marked complete. Match the request email and review the confirmation outcome.
  3. For each confirmed request, use Erase Personal Data to run registered WordPress, WooCommerce and other plugin erasers. Review all retained-data messages. WooApp's eraser also retries a failed, confirmed app account deletion after the cause is resolved. An ordinary WordPress erasure request without the app's deletion authorization does not delete the login.
  4. Inspect remaining order billing/shipping details, downloads, logs and any third-party integrations. Apply your documented retention policy and complete any necessary manual/provider actions. Do not remove records still required for a valid retention reason.
  5. Record completion and any retained categories with their reason and expiry. Notify the customer of the outcome and any justified delay through your privacy contact process. Use WordPress's completed-request notification only after the review is actually complete.

Timeframe: confirmed login deletion is automatic during email confirmation. For the separate merchant data review, set and publish a specific response/completion timeframe before launch. A recommended operating target is review each business day and completion within 7 calendar days of confirmation, subject to any shorter applicable requirement. This is a merchant procedure, not an automatic seven-day timer. Communicate any retention exception or delay and the expected resolution date directly to the requester.

If deletion does not complete

A database or plugin error leaves the confirmed request open and displays a WooApp administration notice. The account is blocked from new sign-in once deletion has begun, and its existing sessions are revoked. Resolve the underlying error, then retry the confirmed request in Tools → Erase Personal Data. Verify the user no longer appears under Users, sign-in fails, the confirmation outcome is recorded and required orders remain. If account identity or permissions changed, verify ownership manually before taking any deletion action; never bypass this safeguard for an unverified request.

Follow Apple's account-deletion guidance when preparing your App Store submission. Provide reviewers a customer account and explain the password and email-confirmation steps, the immediate login deletion, and the separate retained-record review described above.

10 / CONFIGURE THE FINAL TAP

Native payments

The current payment set is cash on delivery, Stripe and PayPal. WooApp → Native payments configures dedicated app adapters. Your website’s Stripe/PayPal plugins can coexist, but their settings are not automatically reused and their web checkout handlers are not called.

Unconfigured local sandbox fields. Add your own provider credentials privately in WordPress.
Third-party payment accounts and fees

Stripe: the Flutter app uses flutter_stripe with a server-created PaymentIntent. You need your own Stripe merchant account and credentials. Your account and use are subject to Stripe’s terms, eligibility requirements and transaction fees.

PayPal: the WordPress plugin integrates directly with PayPal REST APIs (Orders v2) in src/Payments/PayPal.php. You need your own PayPal Business/developer account and REST app credentials. Your account and use are subject to PayPal’s applicable terms, availability requirements and transaction fees. Provider charges are separate from your WooApp purchase; rates and eligibility depend on your country/account. Neither account nor payment processing is included in the item price.

Cash on delivery

  1. Open WooCommerce → Settings → Payments → Cash on delivery and enable it.
  2. Review restrictions, including enabled shipping methods and order types.
  3. Place a test order with an eligible address and shipping method. Confirm the resulting WooCommerce order and its unpaid COD status.

Stripe

  1. Begin in a Stripe test environment. Obtain the publishable and secret API keys belonging to the same environment/account.
  2. Register the store webhook endpoint. Use https://your-store.com/wp-json/wooapp/v1/webhooks/stripe. Subscribe to PaymentIntent success, payment failure and cancellation events: payment_intent.succeeded, payment_intent.payment_failed, payment_intent.canceled.
  3. Configure WooApp. Set Stripe mode to sandbox, enter the publishable key, secret key and endpoint signing secret, then enable Stripe and save. All required values must be present for the adapter to be configured.
  4. Configure the app return scheme. The source uses wooapp://safepay. If you rebrand it, update lib/core/payments.dart, the Android manifest and iOS URL types consistently.
  5. Test the signed Android/iOS app. Cover success, 3DS, declined payments, cancellation, background/return, interrupted network and resuming an existing attempt. Verify signed webhooks and the final WooCommerce order.
  6. Switch environments only for launch. Use matching live credentials and a live webhook endpoint/signing secret after confirming your store’s sandbox checkout flow. Repeat a controlled production verification.

The app displays Stripe PaymentSheet using a server-created PaymentIntent. The secret key stays on your server. A provider approval screen alone is not the final authority for the order’s paid status. Refer to Stripe’s PaymentIntents guide and webhook documentation for your provider-side setup.

PayPal

  1. Create a PayPal sandbox REST app. Prepare the client ID and client secret plus sandbox buyer/seller accounts.
  2. Register the store webhook. Use https://your-store.com/wp-json/wooapp/v1/webhooks/paypal. Register relevant checkout order and capture events, then copy that webhook’s ID.
  3. Configure WooApp. Select PayPal sandbox mode, enter the client ID, client secret and webhook ID, enable it and save.
  4. Review native return configuration. Android uses com.wooapp.wooapp.paypal in both MainActivity.kt and the manifest. Replace it consistently for your application ID and configure any provider-side app requirements. iOS approval is handled by the bundled PayPal bridge.
  5. Verify approval and capture. The backend creates the PayPal order; the app approves that exact order and the backend captures/verifies it. Test cancel, duplicate taps, interruption and order recovery on both target platforms.
  6. Prepare live accounts and webhook. Use corresponding live REST app values only after sandbox/native verification, then verify a controlled live order.

Provider reference: PayPal REST APIs, Orders v2 and webhooks.

Web preview versus native payment approval

The browser app offers COD. Stripe and PayPal approval are Android/iOS integrations. Configure online methods in WordPress and use an Android or iOS build for provider approval.

Saving, clearing and server overrides

Blank secret inputs retain their previously saved value; the page does not echo secrets back. Clear stored secret credentials removes stored secret fields when saved. A matching private WOOAPP_* server constant overrides the UI and is shown as managed in server configuration. Mode, credentials and webhook configuration must match the same provider environment.

Payment constants in wp-config.php

A server administrator can set any of the following constants in wp-config.php, before the “stop editing” line and before require_once ABSPATH . 'wp-settings.php';. Each constant overrides only its matching saved setting. Undefined constants fall back to the values saved under WooApp → Native payments. Use strings for flags/modes; do not use boolean true for an enabled flag. Empty constants also override the database, so a defined empty credential disables a complete configuration.

Exact constant name Value
WOOAPP_STRIPE_ENABLED yes or no (string)
WOOAPP_STRIPE_MODE sandbox or live
WOOAPP_STRIPE_PUBLISHABLE_KEY pk_test_… / pk_live_…; matching environment
WOOAPP_STRIPE_SECRET_KEY sk_test_… / sk_live_…; server secret
WOOAPP_STRIPE_WEBHOOK_SECRET whsec_… for this webhook endpoint
WOOAPP_PAYPAL_ENABLED yes or no (string)
WOOAPP_PAYPAL_MODE sandbox or live
WOOAPP_PAYPAL_CLIENT_ID REST app client ID
WOOAPP_PAYPAL_CLIENT_SECRET REST app client secret
WOOAPP_PAYPAL_WEBHOOK_ID Webhook ID registered on this REST app
// wp-config.php — placeholders only; supply your own private sandbox values.
define('WOOAPP_STRIPE_ENABLED', 'yes');
define('WOOAPP_STRIPE_MODE', 'sandbox');
define('WOOAPP_STRIPE_PUBLISHABLE_KEY', 'YOUR_STRIPE_TEST_PUBLISHABLE_KEY');
define('WOOAPP_STRIPE_SECRET_KEY', 'YOUR_STRIPE_TEST_SECRET_KEY');
define('WOOAPP_STRIPE_WEBHOOK_SECRET', 'YOUR_STRIPE_TEST_WEBHOOK_SECRET');
define('WOOAPP_PAYPAL_ENABLED', 'yes');
define('WOOAPP_PAYPAL_MODE', 'sandbox');
define('WOOAPP_PAYPAL_CLIENT_ID', 'YOUR_PAYPAL_SANDBOX_CLIENT_ID');
define('WOOAPP_PAYPAL_CLIENT_SECRET', 'YOUR_PAYPAL_SANDBOX_CLIENT_SECRET');
define('WOOAPP_PAYPAL_WEBHOOK_ID', 'YOUR_PAYPAL_SANDBOX_WEBHOOK_ID');

When active, the corresponding admin row displays Managed in server configuration in place of its input, checkbox or mode selector. The value is not echoed. Saving the admin form skips that setting. Clear stored secret credentials clears database copies only; it cannot remove a constant. Remove the relevant definition and reload the page to restore UI editing. Matching previously saved database values become effective again. Keep real keys out of Flutter source, Git, screenshots and the downloadable package. Keep all credentials, mode and webhooks within the same provider environment.

Another gateway?

Required gateway integration has no extra development charge. Contact item support with the provider’s official API/SDK documentation, intended country, currency, account type and your requirements. We will confirm technical feasibility and schedule. Account approval, provider fees and broader unrelated customization are separate.

11 / THE DEVELOPER’S DESK

Set up Flutter

  1. Install Flutter. Follow the official Flutter installation guide for your operating system. This source was tested with Flutter 3.35.5 and Dart 3.9.2. Start with the included pubspec.lock; do not blindly upgrade dependencies before your first working build.
  2. Install platform tooling. Android needs the Android SDK/tooling. iOS builds need macOS and Xcode. Chrome can be used for the initial browser preview.
  3. Extract the source ZIP. Open the extracted mobile directory in VS Code or Android Studio. All commands in this chapter run from that directory.
  4. Check your tools. Run flutter doctor -v. Resolve problems for the platform you plan to build. iOS warnings are expected on Windows; iOS cannot be built there.
  5. Fetch the locked dependencies. Run flutter pub get. Keep pubspec.lock with your source.
  6. Run checks and preview. Start with analysis and the included Flutter tests, then run the browser preview against your own configured store. Browser CORS must be set up for its origin.
cd mobile
flutter --version
flutter doctor -v
flutter pub get
flutter analyze
flutter test
flutter run -d chrome --web-port 8090 --dart-define=STORE_URL=https://your-store.com
YOUR FIRST BUILD / COMMAND WALKTHROUGH
1flutter pub get

Get the dependencies pinned to this source.

2--dart-define=STORE_URL=https://your-store.com

Supply your WordPress store address at build time.

3flutter run -d chrome

Review browsing, branding and COD checkout.

4Signed native builds → device tests → release

Verify your platform and payment flows before submission.

Follow this workflow with your store address and your own app identity.

Where to make changes

Source What it controls
lib/main.dart Customer app entry point
lib/design/ Theme, components and shared motion
lib/screens/ Home, catalog, products, bag, checkout and accounts
lib/core/api.dart API transport and secure sessions
lib/core/store.dart Store connection, data and checkout recovery
lib/core/payments.dart Native payment availability and return URL
android/, ios/ App identity, signing, platform assets and PayPal bridges
lib/website_preview.dart Separate web-only marketing preview; not the customer app entry point

The site’s branding switcher is a preview tool. It changes only that embedded instance’s theme. Real customer builds use lib/main.dart and branding from WordPress. They contain no palette switcher, demo store selector or fallback demo catalog.

12 / YOUR ANDROID DEBUT

Build & release Android

Set your own app identity and upload key. WooApp already loads android/key.properties and selects the release signing configuration. Release packaging stops with WooApp release signing is missing if any of the four properties is absent. Debug previews remain available without private signing.

  1. Replace com.wooapp.wooapp in android/app/build.gradle.kts (namespace and applicationId), Kotlin package/source path, and payment callback schemes consistently.
  2. Change the app label in android/app/src/main/AndroidManifest.xml and replace launcher/adaptive icons.
  3. Create your upload keystore in a private location using the command below. Keep the key and passwords backed up for future updates.
  4. Copy android/key.properties.example to android/key.properties and supply all four real values. Do not add another signing block: the supplied Gradle file already reads this file. Paths are absolute or relative to android/; use forward slashes on Windows.
  5. Run the signing report below and confirm the release variant uses your upload key.
  6. Set your own version: 2.0.1+3 in pubspec.yaml; increase the build number for each subsequent store upload.
  7. Build using your canonical production HTTPS store URL, test via Google Play’s internal track, and complete the current Play Console listing, privacy and app access requirements.
keytool -genkeypair -keystore YOUR_PRIVATE_PATH/upload-keystore.jks -storetype JKS -alias upload -keyalg RSA -keysize 2048 -validity 10000

Private signing file

# android/key.properties — private; never commit or distribute
storeFile=C:/private/wooapp-upload.jks
storePassword=YOUR_PRIVATE_STORE_PASSWORD
keyAlias=upload
keyPassword=YOUR_PRIVATE_KEY_PASSWORD

Keep the same app identity and upload key across your own app updates. The keystore and key.properties are excluded from the delivered archive. Refer to Flutter’s signing instructions and Android’s app signing guide.

Verify which key Gradle uses

Run from the extracted mobile directory. Use the command for your operating system:

# Windows PowerShell
cd android
.\gradlew.bat :app:signingReport

# macOS / Linux
cd android
./gradlew :app:signingReport

Find Variant: release. Expect Config: release, your private Store path, your Alias, and SHA-1/SHA-256 fingerprints matching your upload certificate. Debug variants legitimately show the debug key. A release variant showing Config: debug, debug.keystore, AndroidDebugKey or CN=Android Debug means a customized Gradle file is still using debug signing.

Release build is still signed with the debug key

Symptom: an AAB/APK can build and install locally, but Play Console rejects it as signed in debug mode (or with the wrong certificate). The word --release alone does not choose a release key. If a customized source has signingConfig = signingConfigs.getByName("debug") inside buildTypes.release, restore the supplied release assignment and configure your private properties. Run flutter clean, flutter pub get, rerun :app:signingReport, and rebuild. Do not upload the previously generated artifact.

# Back in mobile/
flutter build appbundle --release --dart-define=STORE_URL=https://your-store.com
flutter build apk --release --dart-define=STORE_URL=https://your-store.com

# Typical outputs
# build/app/outputs/bundle/release/app-release.aab
# build/app/outputs/flutter-apk/app-release.apk

# Inspect the certificate of the actual generated APK:
apksigner verify --print-certs build/app/outputs/flutter-apk/app-release.apk
# Inspect the certificate of the actual generated AAB with the JDK:
keytool -printcert -jarfile build/app/outputs/bundle/release/app-release.aab

apksigner is in Android SDK build-tools; add its directory to PATH if necessary. Compare the artifact certificate with keytool -list -v -keystore YOUR_PRIVATE_PATH/upload-keystore.jks -alias upload. Under Play App Signing, your uploaded AAB uses the upload key while apps delivered by Google Play use the app signing key; those certificates can differ. A missing file, incorrect password or wrong alias requires correcting the private configuration, not switching back to debug signing.

13 / YOUR IOS DEBUT

Build & release iOS

Use a Mac with Xcode, CocoaPods and your Apple developer account. The iOS source is included in your Flutter download.

  1. Prepare the project on macOS. Extract the Flutter source, run flutter pub get and resolve the relevant flutter doctor -v findings.
  2. Open the workspace. Open ios/Runner.xcworkspace in Xcode after CocoaPods dependencies are installed. Use the workspace rather than the project file.
  3. Set the identity and team. In Runner’s Signing & Capabilities, choose your Apple team and unique bundle identifier. Register that identity with your own Apple developer/App Store Connect account.
  4. Apply branding. Change CFBundleDisplayName in ios/Runner/Info.plist and replace the AppIcon asset set. Check launch assets and supported device orientations.
  5. Review payment return handling. Update the Stripe URL type if you rename the wooapp scheme. Verify PayPal approval and return behavior with the bundled bridge and your account configuration.
  6. Build with the store URL. Use your real HTTPS store address. Resolve signing/provisioning errors in Xcode.
  7. Test via TestFlight. Verify real-device checkout, approval/cancel flows, network interruptions, account recovery and accessibility. Check your own app’s privacy behavior.
  8. Prepare App Store Connect. Complete listing assets, privacy disclosures, review notes/test accounts where applicable and the latest Apple requirements. Submit only after verification.
flutter pub get
cd ios
pod install
cd ..
open ios/Runner.xcworkspace
flutter build ipa --release --dart-define=STORE_URL=https://your-store.com

# Typical output folder: build/ios/ipa/

macOS commands above are for a Mac terminal. Keep Apple certificates, provisioning materials and account credentials private. Follow the official Flutter iOS release guide for current signing/export steps. Store acceptance and account approval are controlled by Apple, not guaranteed by the source package.

14 / READY MEANS TESTED

Your launch checklist

Use this checklist for each merchant release. Save your progress in this browser as you prepare your own store and app release.

15 / KEEP YOUR NEXT CHAPTER SMOOTH

Product updates

This guide covers updates between WooApp releases, including how to carry your own customizations forward. Keep the untouched vendor source in version control and your custom work on a separate branch.

  1. Back up WordPress files/database and record the installed plugin/app versions. Copy the currently deployed plugin and your working Flutter source. Back up your signing materials separately.
  2. Extract the new download into a new directory. Read its release notes and API requirements. Do not extract it directly over your customized project.
  3. Apply the plugin to staging first. If you have not edited its source, use Plugins → Add Plugin → Upload Plugin, select the inner WooApp ZIP and choose Replace current with uploaded. The folder remains wooapp/. Settings, home layouts, banners and wishlist/session tables live in the database; uploads live in wp-content/uploads/. Replacing plugin files does not replace these.
  4. For a modified plugin, compare the previous untouched vendor release to the new one, then merge that diff into your customized branch. Prefer your own separate integration plugin or documented hooks for store-specific behavior; do not blindly overwrite modified PHP/JS/CSS.
  5. Merge Flutter source changes using your previous untouched vendor version as the base. Keep your merchant application IDs, payment return URLs, icons, signing configuration, STORE_URL build commands and platform build numbers.
  6. Run flutter pub get, flutter analyze and flutter test; verify staging catalog, account/cart, shipping, checkout, enabled provider callbacks and order state. Recheck :app:signingReport.
  7. Deploy the compatible plugin first, verify /wp-json/wooapp/v1/bootstrap and Setup: Ready, then distribute the signed app update after store testing. Follow any release-specific rollout requirements.
Files / data Safe update rule
wp-content/plugins/wooapp/ Replace the complete folder only when unmodified. Merge source edits manually otherwise. Avoid mixing files from different vendor releases.
documentation/, release notes and examples Replace with the new guide; keep your own project notes separately.
Unmodified Flutter lib/, test/, tool/, assets/ and web/ Replace from the new release if these remain untouched. Merge every file you customized, including web icons and manifests.
pubspec.yaml, pubspec.lock, analysis options Merge dependency/configuration changes together. Preserve your version/build number and custom dependencies; resolve the lockfile with the intended SDK rather than combining incompatible locks.
android/ and ios/ Merge Gradle, manifests, Kotlin/Swift, Info.plist, Podfile, Xcode project, entitlements, URL schemes, app IDs and launcher/launch assets. These usually contain merchant-specific identity/signing changes.
Private android/key.properties, keystores, signing certificates, provisioning, local.properties, CI secrets and STORE_URL commands Preserve privately; never replace from vendor templates or include in an archive/support ticket. Example files are references only.
wp-config.php, server credentials/constants, uploads, WordPress/WooCommerce database and merchant settings Preserve. The WooApp ZIP contains none of these. Do not restore a stale database over new customer orders.
Generated build/, .dart_tool/, Gradle/Pods caches Regenerate with the documented tools; do not manually merge generated output.

Rollback and data safety

Keep the preceding plugin and signed app artifact available. Verify rollback against the release notes and staging copy before use, especially if a future release changes its database schema. Restore files from one consistent version. Database rollback requires a plan for orders/customer changes since the backup; consult your developer before restoring. Never delete tables to resolve an update error. Use WooApp’s setup diagnostics and server error log.

16 / FIND YOUR NEXT STEP

Troubleshooting

“This app has not been configured yet”

The build has no STORE_URL. Rerun/rebuild from mobile/ with --dart-define=STORE_URL=https://your-store.com. Setting a value after building does not change an already compiled app.

“We couldn’t load this store”

Check the final HTTPS base address, valid certificate, public /wp-json/wooapp/v1/bootstrap response and Setup: Ready. Confirm the new plugin is active. Check API redirects, security/firewall blocks and browser CORS where applicable. Confirm data.plugin_version matches your installed WooApp version.

The browser reports a CORS or preflight error

Allow your exact preview origin and the Authorization, Content-Type, Cart-Token and Idempotency-Key request headers at the host/store; expose Cart-Token. Do not add store secrets to solve CORS. The local Docker helper is development-only.

The app loads but shows no products

Confirm published catalog visibility, category assignments and stock settings. Check the WooCommerce Store API product response. An empty real catalog is shown as empty, without demo products.

Images or videos do not load

Open the media URL directly. Check HTTPS, mixed content, hotlink protection, MIME type, video codec and access rules. Use a poster for every video and compressed store media. Cached thumbnails may need regeneration through your store’s normal tooling.

Branding or home edits do not appear

Save the correct WordPress page and refresh the app home. Verify that the app was built for this store. Check cache rules for the bootstrap/home APIs. If another admin window saved newer changes, reload the editor before saving again.

No delivery rates or COD method appears

Check the entered address against your WooCommerce shipping zones, enabled methods, allowed countries and COD restrictions. Compare the same cart/address on the website. Resolve the server configuration; do not hardcode totals/rates in Flutter.

Stripe or PayPal does not appear

Browser previews offer COD only. On Android/iOS, confirm every required WooApp credential and webhook value, the enabled flag, matching mode and provider availability. Installing a website gateway plugin alone does not configure the native adapter.

Payment approved but the order is not confirmed

Resume the original attempt. Check provider order/capture status, signed webhook delivery, server errors and the WooCommerce order notes. Avoid repeated new checkouts. Share a sanitized order reference and provider event IDs with support, never secret credentials.

Password recovery or account email does not arrive

Configure WordPress email/SMTP with your host, verify the customer’s address and check delivery/spam logs. The app cannot deliver email if the WordPress mail service is not working.

WordPress refuses the uploaded ZIP

Select the inner wooapp-2.0.1.zip, not the complete buyer archive. Confirm PHP/WordPress/WooCommerce requirements and hosting upload limits. The ZIP must contain a top-level wooapp folder and its plugin entry file.

Android signing, iOS provisioning or dependency errors

Check flutter doctor -v, use the source’s locked dependencies, and confirm platform tooling and private signing setup. iOS needs a Mac. Use the release signing report and artifact checks to diagnose the key used. Include sanitized build errors in a support ticket.

17 / A LITTLE CONTEXT GOES A LONG WAY

How everything connects

The customer app calls WooCommerce Store API for catalog/cart and /wp-json/wooapp/v1/ for WooApp configuration, accounts and checkout. Prices and order totals are calculated by the store. The app never needs an administrator session to fetch the catalog.

Customer sessions use bearer tokens. Native Android/iOS store session material in platform secure storage; browser preview keeps it in memory. Payment secrets remain on the server. Customer and payment responses should bypass shared page/CDN caching. Hosting must forward the required authorization and cart headers.

18 / YOUR WOOAPP REFERENCE

Features & compatibility

WooApp 2.0

Your WooCommerce store, connected to your own Android and iOS shopping app.

Area Included Configuration guide
Store integration WordPress plugin, WooCommerce catalog/cart, customer accounts and orders Install the plugin
Storefront Galleries, variations, search, favorites, cart, coupons and delivery choices Catalog & checkout
Branding & content Logo, six palettes, three font styles, visual collections and image/video banners Branding settings
Payments Cash on delivery, native Stripe PaymentSheet and PayPal approval Provider setup
Source delivery Flutter source ZIP, installable plugin ZIP and offline HTML documentation Your download

See Requirements & compatibility for the supported platform versions, product types and extension scope. Your developer configures app identifiers, signing and your canonical HTTPS store URL. Store content and branding are managed in WordPress.

DEVELOPER REFERENCE

Custom REST API reference

Base URL: https://your-store.com/wp-json/wooapp/v1. Every custom route and method registered by the WooApp plugin is listed below. Download the OpenAPI 3.1 contract for schemas and response examples. Values below are illustrative; store settings, IDs, countries, amounts and provider actions vary.

Send JSON with Content-Type: application/json. Customer routes require Authorization: Bearer ACCESS_TOKEN, obtained from login or registration. Access tokens expire in 900 seconds; refresh tokens rotate. Keep the latest replacement refresh token. Merchant/administrator identities cannot sign in as app customers. HTTPS is required except explicitly local WordPress environments. Errors use WordPress REST format, for example {"code":"wooapp_authentication_required","message":"Customer authentication is required.","data":{"status":401}}. Respect HTTP 429 rate limits and do not retry checkout with a new idempotency key.

Cart and checkout use Cart-Token. Get a guest cart/token from GET /cart; retain the token returned in both the response header and data. A customer cart must match the authenticated customer. POST /cart/merge takes the guest token plus the new customer bearer session and returns the customer token. Checkout options and attempts require the same cart token and, for a customer cart, the same bearer identity. Reuse the same Idempotency-Key for retries of the same checkout body. A changed body needs a new key after resolving any active attempt. Attempts expire after 30 minutes. Only POST create/resume returns a provider next action; GET status does not restart payment.

Prices in WooCommerce Store API carts are integer minor-unit strings; expected_total uses that exact format. Order, variation and attempt totals use decimal strings with an explicit amount_format. Never calculate payable amounts in the client. Paginated custom endpoints accept page (default 1, 1–100000) and per_page (default 20, 1–100); responses include pagination. GET also supports WordPress's standard HEAD behavior. OPTIONS provides REST route discovery.

Method Endpoint Authentication Accepted parameters (* required body field)
GET /bootstrap Public No body or query parameters.
GET /home Public locale (query, optional): string: en, ar
POST /auth/login Public JSON body: object; fields: login* (string; maxLength=254), password* (string; maxLength=4096), device (string; maxLength=100)
POST /auth/register Public JSON body: object; fields: email* (string; format=email), password* (string; minLength=12; maxLength=4096), first_name (string; maxLength=100), last_name (string; maxLength=100), device (string; maxLength=100)
POST /auth/refresh Public JSON body: object; fields: refresh_token* (string; maxLength=100)
POST /auth/logout Customer bearer session No body or query parameters.
POST /auth/logout-all Customer bearer session No body or query parameters.
POST /auth/password/forgot Public JSON body: object; fields: email* (string; format=email)
POST /auth/password/reset Public JSON body: object; fields: login* (string; maxLength=254), key* (string; maxLength=254), password* (string; minLength=12; maxLength=4096)
GET /me Customer bearer session No body or query parameters.
PATCH /me Customer bearer session JSON body: object; fields: first_name (string; maxLength=100), last_name (string; maxLength=100), display_name (string; maxLength=100)
POST /me/password Customer bearer session JSON body: object; fields: current_password* (string; maxLength=4096), password* (string; minLength=12; maxLength=4096)
GET /me/addresses Customer bearer session No body or query parameters.
PUT /me/addresses/{type} Customer bearer session type (path, required): string: billing, shipping
JSON body: object; fields: first_name (string; maxLength=200), last_name (string; maxLength=200), company (string; maxLength=200), address_1 (string; maxLength=200), address_2 (string; maxLength=200), city (string; maxLength=200), state (string; maxLength=200), postcode (string; maxLength=200), country (string; maxLength=200), email (string; maxLength=200), phone (string; maxLength=200)
GET /address-schema Public country (query, required): string; pattern=^[A-Z]{2}$
type (query, optional): string: billing, shipping; default=billing
POST /me/email Customer bearer session JSON body: object; fields: email* (string; format=email), current_password* (string; maxLength=4096)
POST /me/email/verify Customer bearer session JSON body: object; fields: token* (string; maxLength=100)
GET /me/orders Customer bearer session page (query, optional): integer; minimum=1; maximum=100000; default=1
per_page (query, optional): integer; minimum=1; maximum=100; default=20
GET /me/downloads Customer bearer session No body or query parameters.
GET /me/wishlist Customer bearer session page (query, optional): integer; minimum=1; maximum=100000; default=1
per_page (query, optional): integer; minimum=1; maximum=100; default=20
GET /me/orders/{id} Customer bearer session id (path, required): integer; minimum=1
POST /me/deletion-request Customer bearer session JSON body: object; fields: current_password* (string; maxLength=4096)
GET /products/{id}/variations Public id (path, required): integer; minimum=1
page (query, optional): integer; minimum=1; maximum=100000; default=1
per_page (query, optional): integer; minimum=1; maximum=100; default=20
POST /products/{id}/reviews Customer bearer session id (path, required): integer; minimum=1
JSON body: object; fields: review* (string; maxLength=5000), rating* (integer; minimum=1; maximum=5)
GET /cart Public; optional Cart-Token (customer token needs bearer) Cart-Token (header, optional): string
POST /cart/merge Customer bearer + guest Cart-Token Cart-Token (header, required): string
GET /checkout/options Cart-Token; customer bearer for customer carts Cart-Token (header, required): string
POST /checkout/attempts Cart-Token; customer bearer for customer carts Idempotency-Key (header, required): string; pattern=^[A-Za-z0-9_-]{16,128}$
Cart-Token (header, required): string
JSON body: object; fields: payment_method* (string: cod, stripe, paypal), billing_address* (object; fields: first_name (string; maxLength=200), last_name (string; maxLength=200), company (string; maxLength=200), address_1 (string; maxLength=200), address_2 (string; maxLength=200), city (string; maxLength=200), state (string; maxLength=200), postcode (string; maxLength=200), country (string; maxLength=200), email (string; maxLength=200), phone (string; maxLength=200)), shipping_address (object; fields: first_name (string; maxLength=200), last_name (string; maxLength=200), company (string; maxLength=200), address_1 (string; maxLength=200), address_2 (string; maxLength=200), city (string; maxLength=200), state (string; maxLength=200), postcode (string; maxLength=200), country (string; maxLength=200), email (string; maxLength=200), phone (string; maxLength=200)), customer_note (string; maxLength=2000), additional_fields (object), expected_total* (string; pattern=^[0-9]{1,12}$), terms_accepted* (boolean)
GET /checkout/attempts/{id} Cart-Token; customer bearer for customer carts id (path, required): string; format=uuid
Cart-Token (header, required): string
POST /checkout/attempts/{id}/confirm Cart-Token; customer bearer for customer carts id (path, required): string; format=uuid
Cart-Token (header, required): string
POST /checkout/attempts/{id}/cancel Cart-Token; customer bearer for customer carts id (path, required): string; format=uuid
Cart-Token (header, required): string
POST /webhooks/stripe Provider signature verification Stripe-Signature (header, required): string
JSON body: object
POST /webhooks/paypal Provider signature verification PAYPAL-AUTH-ALGO (header, required): string
PAYPAL-CERT-URL (header, required): string
PAYPAL-TRANSMISSION-ID (header, required): string
PAYPAL-TRANSMISSION-SIG (header, required): string
PAYPAL-TRANSMISSION-TIME (header, required): string
JSON body: object
PUT /me/wishlist/{product_id} Customer bearer session product_id (path, required): integer; minimum=1
DELETE /me/wishlist/{product_id} Customer bearer session product_id (path, required): integer; minimum=1

GET /bootstrap

Read bootstrap

No body or query parameters.

Example response · HTTP 200

{
  "data": {
    "api_version": "1",
    "plugin_version": "2.0.1",
    "branding": {
      "logo_id": 0,
      "logo_height": 44,
      "logo_width": 180,
      "font": "editorial",
      "palette": "citrus",
      "tagline": "YOUR NEXT GOOD FIND",
      "logo": {},
      "colors": {
        "name": "Olive & citrus",
        "ink": "#232923",
        "paper": "#FAF9F5",
        "muted": "#73786F",
        "line": "#E7E7DF",
        "accent": "#DDEE9B",
        "clay": "#A8583C"
      }
    },
    "store": {
      "name": "Your Store",
      "url": "https://your-store.com/",
      "rest_url": "https://your-store.com/wp-json/",
      "currency": "USD",
      "currency_minor_unit": 2,
      "locale": "en_US",
      "direction": "ltr",
      "timezone": "UTC"
    },
    "features": {
      "wishlist": true,
      "orders": true,
      "customer_auth": "opaque_bearer",
      "native_auth": true,
      "push": false,
      "guest_checkout": true,
      "registration": true
    },
    "checkout": {
      "mode": "native",
      "countries": {
        "US": "United States (US)"
      },
      "default_country": "US",
      "ready": true,
      "supported_gateways": [
        "cod",
        "stripe",
        "paypal"
      ],
      "configured_online_gateways": [],
      "options_url": "https://your-store.com/wp-json/wooapp/v1/checkout/options",
      "gateway_targets": [
        "cod",
        "stripe",
        "paypal"
      ],
      "website_fallback": false
    }
  }
}

GET /home

Ordered visible product collections with grid/carousel/list layouts, followed by WooApp banners. Empty or disabled collections are omitted; latest products are returned when no visible collection has products. Flutter places the hero and category strip above the collections.

locale (query, optional): string: en, ar

Example response · HTTP 200

{
  "data": {
    "sections": [
      {
        "id": "featured",
        "type": "product_rail",
        "title": "Featured collection",
        "subtitle": "Our favorites",
        "layout": "carousel",
        "product_ids": [
          10,
          11
        ]
      }
    ]
  }
}

POST /auth/login

Sign in a customer

JSON body: object; fields: login* (string; maxLength=254), password* (string; maxLength=4096), device (string; maxLength=100)

Example response · HTTP 200

{
  "data": {
    "session": {
      "token_type": "Bearer",
      "access_token": "EXAMPLE_ACCESS_TOKEN",
      "expires_in": 900,
      "refresh_token": "EXAMPLE_REFRESH_TOKEN",
      "refresh_expires_at": "2026-11-21T12:00:00+00:00",
      "session_id": "11111111-2222-4333-8444-555555555555"
    },
    "customer": {
      "id": 42,
      "email": "customer@example.com",
      "first_name": "Alex",
      "last_name": "Morgan",
      "display_name": "Alex Morgan",
      "avatar_url": "https://your-store.com/avatar.png"
    }
  }
}

POST /auth/register

Register when enabled by the merchant

JSON body: object; fields: email* (string; format=email), password* (string; minLength=12; maxLength=4096), first_name (string; maxLength=100), last_name (string; maxLength=100), device (string; maxLength=100)

Example response · HTTP 201

{
  "data": {
    "session": {
      "token_type": "Bearer",
      "access_token": "EXAMPLE_ACCESS_TOKEN",
      "expires_in": 900,
      "refresh_token": "EXAMPLE_REFRESH_TOKEN",
      "refresh_expires_at": "2026-11-21T12:00:00+00:00",
      "session_id": "11111111-2222-4333-8444-555555555555"
    },
    "customer": {
      "id": 42,
      "email": "customer@example.com",
      "first_name": "Alex",
      "last_name": "Morgan",
      "display_name": "Alex Morgan",
      "avatar_url": "https://your-store.com/avatar.png"
    }
  }
}

POST /auth/refresh

Rotate the session; replay revokes its family

JSON body: object; fields: refresh_token* (string; maxLength=100)

Example response · HTTP 200

{
  "data": {
    "session": {
      "token_type": "Bearer",
      "access_token": "EXAMPLE_ACCESS_TOKEN",
      "expires_in": 900,
      "refresh_token": "EXAMPLE_REFRESH_TOKEN",
      "refresh_expires_at": "2026-11-21T12:00:00+00:00",
      "session_id": "11111111-2222-4333-8444-555555555555"
    }
  }
}

POST /auth/logout

Revoke this mobile session

No body or query parameters.

Example response · HTTP 200

{
  "data": {
    "signed_out": true
  }
}

POST /auth/logout-all

Revoke all mobile sessions

No body or query parameters.

Example response · HTTP 200

{
  "data": {
    "signed_out": true
  }
}

POST /auth/password/forgot

Send the WordPress password reset email without exposing account existence

JSON body: object; fields: email* (string; format=email)

Example response · HTTP 202

{
  "data": {
    "message": "If the account exists, password reset instructions will be emailed."
  }
}

POST /auth/password/reset

Consume a WordPress reset key and revoke mobile sessions

JSON body: object; fields: login* (string; maxLength=254), key* (string; maxLength=254), password* (string; minLength=12; maxLength=4096)

Example response · HTTP 200

{
  "data": {
    "password_reset": true,
    "sign_in_required": true
  }
}

GET /me

Read the signed-in customer

No body or query parameters.

Example response · HTTP 200

{
  "data": {
    "id": 42,
    "email": "customer@example.com",
    "first_name": "Alex",
    "last_name": "Morgan",
    "display_name": "Alex Morgan",
    "avatar_url": "https://your-store.com/avatar.png"
  }
}

PATCH /me

Update safe profile fields

JSON body: object; fields: first_name (string; maxLength=100), last_name (string; maxLength=100), display_name (string; maxLength=100)

Example response · HTTP 200

{
  "data": {
    "id": 42,
    "email": "customer@example.com",
    "first_name": "Alex",
    "last_name": "Morgan",
    "display_name": "Alex Morgan",
    "avatar_url": "https://your-store.com/avatar.png"
  }
}

POST /me/password

Change password and require sign-in again

JSON body: object; fields: current_password* (string; maxLength=4096), password* (string; minLength=12; maxLength=4096)

Example response · HTTP 200

{
  "data": {
    "password_changed": true,
    "sign_in_required": true
  }
}

GET /me/addresses

Read saved addresses

No body or query parameters.

Example response · HTTP 200

{
  "data": {
    "billing": {
      "first_name": "Alex",
      "last_name": "Morgan",
      "company": "",
      "address_1": "123 Example Street",
      "address_2": "",
      "city": "Los Angeles",
      "state": "CA",
      "postcode": "90001",
      "country": "US",
      "email": "customer@example.com",
      "phone": "2025550100"
    },
    "shipping": {
      "first_name": "Alex",
      "last_name": "Morgan",
      "company": "",
      "address_1": "123 Example Street",
      "address_2": "",
      "city": "Los Angeles",
      "state": "CA",
      "postcode": "90001",
      "country": "US",
      "phone": "2025550100"
    }
  }
}

PUT /me/addresses/{type}

Unknown identity/role fields are ignored. Saved account addresses and active Store API cart addresses are separate; update the cart before checkout.

type (path, required): string: billing, shipping
JSON body: object; fields: first_name (string; maxLength=200), last_name (string; maxLength=200), company (string; maxLength=200), address_1 (string; maxLength=200), address_2 (string; maxLength=200), city (string; maxLength=200), state (string; maxLength=200), postcode (string; maxLength=200), country (string; maxLength=200), email (string; maxLength=200), phone (string; maxLength=200)

Example response · HTTP 200

{
  "data": {
    "first_name": "Alex",
    "last_name": "Morgan",
    "company": "",
    "address_1": "123 Example Street",
    "address_2": "",
    "city": "Los Angeles",
    "state": "CA",
    "postcode": "90001",
    "country": "US",
    "email": "customer@example.com",
    "phone": "2025550100"
  }
}

GET /address-schema

Read WooCommerce address fields and country states

country (query, required): string; pattern=^[A-Z]{2}$
type (query, optional): string: billing, shipping; default=billing

Example response · HTTP 200

{
  "data": {
    "countries": {
      "US": "United States (US)"
    },
    "states": {
      "CA": "California"
    },
    "fields": {
      "billing_first_name": {
        "label": "First name",
        "required": true,
        "type": "text"
      },
      "billing_country": {
        "label": "Country / Region",
        "required": true,
        "type": "country"
      }
    }
  }
}

POST /me/email

Email a purpose-bound confirmation code to a new address

JSON body: object; fields: email* (string; format=email), current_password* (string; maxLength=4096)

Example response · HTTP 200

{
  "data": {
    "verification_required": true
  }
}

POST /me/email/verify

Confirm the new email and revoke sessions

JSON body: object; fields: token* (string; maxLength=100)

Example response · HTTP 200

{
  "data": {
    "email_changed": true,
    "sign_in_required": true
  }
}

GET /me/orders

Read owned orders

page (query, optional): integer; minimum=1; maximum=100000; default=1
per_page (query, optional): integer; minimum=1; maximum=100; default=20

Example response · HTTP 200

{
  "data": [
    {
      "id": 123,
      "number": "123",
      "status": "processing",
      "status_label": "Processing",
      "created_at": "2026-10-22T12:00:00+00:00",
      "currency": "USD",
      "amount_format": "decimal",
      "total": "35.00",
      "total_tax": "0",
      "shipping_total": "5.00",
      "discount_total": "0",
      "payment_method": "cod",
      "payment_method_title": "Cash on delivery",
      "paid_at": null,
      "items": [
        {
          "id": 1,
          "product_id": 10,
          "variation_id": 0,
          "name": "Linen shirt",
          "quantity": 1,
          "subtotal": "30.00",
          "total": "30.00",
          "total_tax": "0"
        }
      ]
    }
  ],
  "pagination": {
    "page": 1,
    "per_page": 20,
    "total": 1,
    "total_pages": 1
  }
}

GET /me/downloads

Read owned downloads

No body or query parameters.

Example response · HTTP 200

{
  "data": [
    {
      "download_id": "example-file-id",
      "product_id": 10,
      "product_name": "Guide",
      "download_name": "Guide PDF",
      "download_url": "https://your-store.com/?download_file=10&key=EXAMPLE",
      "downloads_remaining": "2",
      "access_expires": "2026-12-01",
      "order_id": 123
    }
  ]
}

GET /me/wishlist

Returns product_id entries; pagination is beside data.

page (query, optional): integer; minimum=1; maximum=100000; default=1
per_page (query, optional): integer; minimum=1; maximum=100; default=20

Example response · HTTP 200

{
  "data": [
    {
      "product_id": 10
    }
  ],
  "pagination": {
    "page": 1,
    "per_page": 20,
    "total": 1,
    "total_pages": 1
  }
}

GET /me/orders/{id}

Read one owned order; other customers receive 404

id (path, required): integer; minimum=1

Example response · HTTP 200

{
  "data": {
    "id": 123,
    "number": "123",
    "status": "processing",
    "status_label": "Processing",
    "created_at": "2026-10-22T12:00:00+00:00",
    "currency": "USD",
    "amount_format": "decimal",
    "total": "35.00",
    "total_tax": "0",
    "shipping_total": "5.00",
    "discount_total": "0",
    "payment_method": "cod",
    "payment_method_title": "Cash on delivery",
    "paid_at": null,
    "items": [
      {
        "id": 1,
        "product_id": 10,
        "variation_id": 0,
        "name": "Linen shirt",
        "quantity": 1,
        "subtotal": "30.00",
        "total": "30.00",
        "total_tax": "0"
      }
    ]
  }
}

POST /me/deletion-request

Requires the signed-in customer current password. Sends a confirmation link to the existing account email. WordPress validates the link before WooApp permanently deletes that login, saved addresses, favorites and sessions. Unconfirmed requests do not delete accounts. Required WooCommerce orders are preserved with the customer ID detached; the merchant processes remaining retained personal data through Tools > Erase Personal Data and the published privacy procedure. A generic WordPress erasure request alone does not authorize login deletion.

JSON body: object; fields: current_password* (string; maxLength=4096)

Example response · HTTP 200

{
  "data": {
    "confirmation_required": true,
    "account_deleted_after_confirmation": true,
    "message": "Confirm the email to permanently delete your sign-in account. The store processes remaining personal data and required order retention separately."
  }
}

GET /products/{id}/variations

Published visible variation rows plus parent attribute descriptors. Use descriptors for exact keys, readable labels, all wildcard choices and case-sensitive cart names. Global cart values use term slugs; product-specific values use exact option names.

id (path, required): integer; minimum=1
page (query, optional): integer; minimum=1; maximum=100000; default=1
per_page (query, optional): integer; minimum=1; maximum=100; default=20

Example response · HTTP 200

{
  "data": [
    {
      "id": 11,
      "attributes": {
        "attribute_pa_size": "m"
      },
      "price": "30.00",
      "regular_price": "35.00",
      "sale_price": "30.00",
      "currency": "USD",
      "amount_format": "decimal",
      "purchasable": true,
      "in_stock": true,
      "image_url": "https://your-store.com/uploads/shirt.jpg"
    }
  ],
  "pagination": {
    "page": 1,
    "per_page": 20,
    "total": 1,
    "total_pages": 1
  },
  "attributes": [
    {
      "key": "attribute_pa_size",
      "name": "Size",
      "cart_name": "pa_size",
      "taxonomy": "pa_size",
      "terms": [
        {
          "slug": "m",
          "name": "Medium"
        }
      ]
    }
  ]
}

POST /products/{id}/reviews

Submit a moderated review as the current customer

id (path, required): integer; minimum=1
JSON body: object; fields: review* (string; maxLength=5000), rating* (integer; minimum=1; maximum=5)

Example response · HTTP 201

{
  "data": {
    "id": 7,
    "status": "pending"
  }
}

GET /cart

On first use omit Cart-Token. Later use both customer bearer and owned Cart-Token for customer carts. A guest cart must be explicitly merged after sign-in.

Cart-Token (header, optional): string

Example response · HTTP 200

{
  "data": {
    "cart": {
      "items": [],
      "coupons": [],
      "fees": [],
      "totals": {
        "total_items": "0",
        "total_shipping": "0",
        "total_price": "0",
        "currency_code": "USD",
        "currency_minor_unit": 2
      },
      "shipping_rates": []
    },
    "cart_token": "EXAMPLE_CART_TOKEN"
  }
}

POST /cart/merge

Send the guest Cart-Token with the customer bearer. Successful replay is idempotent; transfer validates standard simple/variable items. Coupon codes are reapplied explicitly to the resulting cart.

Cart-Token (header, required): string

Example response · HTTP 200

{
  "data": {
    "cart": {
      "items": [],
      "coupons": [],
      "fees": [],
      "totals": {
        "total_items": "0",
        "total_shipping": "0",
        "total_price": "0",
        "currency_code": "USD",
        "currency_minor_unit": 2
      },
      "shipping_rates": []
    },
    "cart_token": "EXAMPLE_CUSTOMER_CART_TOKEN"
  }
}

GET /checkout/options

Get cart-specific enabled methods and the current WooCommerce cart

Cart-Token (header, required): string

Example response · HTTP 200

{
  "data": {
    "payment_methods": [
      {
        "id": "cod",
        "title": "Cash on delivery",
        "requires_sdk": false
      }
    ],
    "cart": {
      "items": [],
      "coupons": [],
      "fees": [],
      "totals": {
        "total_items": "0",
        "total_shipping": "0",
        "total_price": "0",
        "currency_code": "USD",
        "currency_minor_unit": 2
      },
      "shipping_rates": []
    },
    "terms_url": "https://your-store.com/terms/",
    "privacy_url": "https://your-store.com/privacy/",
    "terms_required": true,
    "website_fallback": false
  }
}

POST /checkout/attempts

Always retry the exact same body and key after uncertain responses. expected_total is the Store API minor-unit total_price. Response totals are decimal strings. Positive COD orders are confirmed and unpaid. Online attempts expire after 30 minutes; cancel before starting a different payment.

Idempotency-Key (header, required): string; pattern=^[A-Za-z0-9_-]{16,128}$
Cart-Token (header, required): string
JSON body: object; fields: payment_method* (string: cod, stripe, paypal), billing_address* (object; fields: first_name (string; maxLength=200), last_name (string; maxLength=200), company (string; maxLength=200), address_1 (string; maxLength=200), address_2 (string; maxLength=200), city (string; maxLength=200), state (string; maxLength=200), postcode (string; maxLength=200), country (string; maxLength=200), email (string; maxLength=200), phone (string; maxLength=200)), shipping_address (object; fields: first_name (string; maxLength=200), last_name (string; maxLength=200), company (string; maxLength=200), address_1 (string; maxLength=200), address_2 (string; maxLength=200), city (string; maxLength=200), state (string; maxLength=200), postcode (string; maxLength=200), country (string; maxLength=200), email (string; maxLength=200), phone (string; maxLength=200)), customer_note (string; maxLength=2000), additional_fields (object), expected_total* (string; pattern=^[0-9]{1,12}$), terms_accepted* (boolean)

Example response · HTTP 200

{
  "data": {
    "id": "11111111-2222-4333-8444-555555555555",
    "order_id": 123,
    "order_number": "123",
    "state": "confirmed",
    "payment_method": "cod",
    "currency": "USD",
    "total": "35.00",
    "amount_format": "decimal",
    "paid": false,
    "payment_collected": false,
    "next_action": null
  }
}

GET /checkout/attempts/{id}

Reads status only. Replay the original creation request to retrieve an SDK next_action.

id (path, required): string; format=uuid
Cart-Token (header, required): string

Example response · HTTP 200

{
  "data": {
    "id": "11111111-2222-4333-8444-555555555555",
    "order_id": 123,
    "order_number": "123",
    "state": "confirmed",
    "payment_method": "cod",
    "currency": "USD",
    "total": "35.00",
    "amount_format": "decimal",
    "paid": false,
    "payment_collected": false,
    "next_action": null
  }
}

POST /checkout/attempts/{id}/confirm

No client payment status, provider ID, or order total is trusted.

id (path, required): string; format=uuid
Cart-Token (header, required): string

Example response · HTTP 200

{
  "data": {
    "id": "11111111-2222-4333-8444-555555555555",
    "order_id": 123,
    "order_number": "123",
    "state": "confirmed",
    "payment_method": "cod",
    "currency": "USD",
    "total": "35.00",
    "amount_format": "decimal",
    "paid": false,
    "payment_collected": false,
    "next_action": null
  }
}

POST /checkout/attempts/{id}/cancel

No client payment status, provider ID, or order total is trusted.

id (path, required): string; format=uuid
Cart-Token (header, required): string

Example response · HTTP 200

{
  "data": {
    "id": "11111111-2222-4333-8444-555555555555",
    "order_id": 123,
    "order_number": "123",
    "state": "cancelled",
    "payment_method": "cod",
    "currency": "USD",
    "total": "35.00",
    "amount_format": "decimal",
    "paid": false,
    "payment_collected": false,
    "next_action": null
  }
}

POST /webhooks/stripe

Receive a verified stripe webhook

Stripe-Signature (header, required): string
JSON body: object

Example response · HTTP 200

{
  "received": true
}

POST /webhooks/paypal

Receive a verified paypal webhook

PAYPAL-AUTH-ALGO (header, required): string
PAYPAL-CERT-URL (header, required): string
PAYPAL-TRANSMISSION-ID (header, required): string
PAYPAL-TRANSMISSION-SIG (header, required): string
PAYPAL-TRANSMISSION-TIME (header, required): string
JSON body: object

Example response · HTTP 200

{
  "received": true
}

PUT /me/wishlist/{product_id}

Add a public product idempotently

product_id (path, required): integer; minimum=1

Example response · HTTP 200

{
  "data": {
    "product_id": 10,
    "saved": true
  }
}

DELETE /me/wishlist/{product_id}

Remove an owned membership idempotently

product_id (path, required): integer; minimum=1

Example response · HTTP 200

{
  "data": {
    "product_id": 10,
    "saved": false
  }
}

WooCommerce Store API

WooApp uses the native /wp-json/wc/store/v1 API for products, categories, collection data, published reviews, cart items, coupons, customer address updates and shipping-rate selection. These are WooCommerce routes, not custom WooApp routes. Follow the official Store API reference. Pass the cart token on cart mutations. The WooApp product extension adds extensions.wooapp.label.text. Customer bearer sessions are scoped to WooApp v1 and Store API only, not the administrative WooCommerce REST API.

Merchant editor requests

The visual editors use authenticated WordPress AJAX, not additional custom REST endpoints. Requests go to /wp-admin/admin-ajax.php as form-encoded POST, with the current WordPress login cookie, a matching nonce and manage_woocommerce capability. Never expose these nonces or merchant credentials in Flutter. Success uses {"success":true,"data":...}; failures use {"success":false,"data":{"message":"..."}}. Save requests require the revision returned by the current editor; stale edits return HTTP 409.

Action / operation Accepted form fields Success data
wooapp_home_search nonce (wooapp_home_builder), query string ≤100 characters, page 1–100 {products:[{id,name,sku,image,price}],more:false}
wooapp_home_save nonce (wooapp_home_builder), revision string, sections JSON list: ≤20 rows with id, title ≤100, subtitle ≤180, layout grid/carousel/list, enabled boolean, product_ids list ≤100 positive integers {sections:[],products:{},revision:"hash",locale:"en",storeName:"Store"}
wooapp_studio / search nonce (wooapp_studio), operation=search, kind=product or category, query ≤100, page 1–100 {products:[{id,name,image,price}],more:false}
wooapp_studio / save_branding nonce, operation=save_branding, revision, payload JSON with logo_id, logo_height (24–88), logo_width (80–240), tagline ≤70, palette (preset key), font (preset key) {settings:{logo:{},logo_height:40,logo_width:180,tagline:"",palette:"citrus",font:"editorial",colors:{}},revision:"hash"}
wooapp_studio / save_banners nonce, operation=save_banners, revision, payload JSON {items:[...],deleted_ids:[]}; ≤20 items with id (0=new), title, enabled boolean, subtitle, badge, cta_label, media_type image/video, image_id (poster required), video_id, link_type none/product/category/search, target_id, query {items:[],revision:"hash"}; order follows submitted items; deleted IDs move to Trash

19 / YOU DON’T HAVE TO FIGURE IT OUT ALONE

Getting support

Contact Tqniyati for purchase-related setup questions and reproducible product issues, within your purchase’s support terms. Keep your purchase details in the private support channel rather than public comments.

Include the details that help us help you

  • Plugin/app version, WordPress/WooCommerce/PHP versions and Flutter version.
  • The affected platform and whether this is a browser, debug or signed release build.
  • The exact steps, expected result and actual result.
  • A sanitized screenshot/error log and a reproducible product/order reference if applicable.
  • Any custom checkout/product extensions and your hosting cache/security setup.

Do not include passwords, full payment details, private keys, customer tokens or signing files. For a required additional payment gateway, share its official developer documentation, country/currency and account requirements. Integration development is offered at no extra charge subject to technical feasibility and an agreed delivery schedule; provider fees remain yours.

Broader custom app design, bespoke features, store creation or publishing assistance can be discussed separately. App-store acceptance remains subject to the platform’s review.

20 / BUILT WITH GOOD FOUNDATIONS

Credits & licenses

WooApp is an independent product. Developed by Tqniyati. WordPress, WooCommerce, Flutter, Stripe and PayPal names are used to describe integrations and remain the property of their respective owners. Their appearance does not imply endorsement.

  • Flutter/Dart and packages listed in the included pubspec.yaml and pubspec.lock. Preserve the notices generated/included by your dependencies.
  • DM Sans and Cormorant Garamond: bundled under their included SIL Open Font License notices. DM Sans license · Cormorant license.
  • Store photography and demo video: project-created sample assets used to illustrate the demonstration store. Customer apps retrieve their own store media rather than bundling this catalog.
  • Guide screenshots: captured from the local WooApp staging installation. They illustrate the plugin controls and app journeys described in this handbook.

Your purchase license and the provider/platform terms govern use of the product and integrations. See the item’s current license information on CodeCanyon. This guide does not replace those terms.

Now, make it yours.

A little setup. A whole new way to shop.

Back to your first connection ↑

Find your next step.