| 开发者 | rickey29 |
|---|---|
| 更新时间 | 2026年7月9日 05:31 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPL v2 or later |
| 版权网址: | 版权信息 |
flxwoo/v1)flxwoo/v1). Checkout state endpoints (cart, order, coupon, customer) return JSON. Render endpoints (/render/checkout, /render/thank-you) return server-side rendered HTML. Product pages are intercepted at the template layer and rendered through the external Render service, with automatic fallback to native WordPress/WooCommerce templates if the service is unavailable or the product type is not supported.
WooCommerce remains authoritative for all order, cart, tax, and payment data. FlxWoo reads and writes through WooCommerce's standard APIs without modifying its data structures or core behavior.
Features
flxwoo/v1 namespaceGET /wp-json/flxwoo/v1/health for uptime monitoring/wp-content/plugins/, or install it from the WordPress admin plugin installer./checkout*, /thank-you*, and /wp-json/flxwoo/*. See the Cache and CDN Configuration section above.GET /wp-json/flxwoo/v1/health should return HTTP 200.No. FlxWoo adds a REST and rendering layer on top of WooCommerce's checkout system. WooCommerce remains responsible for cart calculation, order creation, tax, coupons, and inventory.
No. Payment is handled by WooCommerce and Stripe. FlxWoo creates Stripe Checkout sessions server-side and handles webhook callbacks — the order record and payment status are managed by WooCommerce as normal.
It is headless-friendly. FlxWoo provides the REST API and server-side rendering infrastructure needed for decoupled checkout workflows. A fully headless setup is possible but not required — FlxWoo can also be used within a standard WordPress/WooCommerce installation.
FlxWoo REST endpoints and the checkout and thank-you HTML pages carry live session, cart, and payment state. Caching any of them produces incorrect behavior — stale carts, duplicate orders, broken payment confirmation pages, and session data surfacing to the wrong customer. These failures are often intermittent and cannot be reproduced in local environments where CDN layers are inactive. See the Cache and CDN Configuration section for specific instructions, or docs/cache-configuration.md for full per-system details.
No. FlxWoo creates and reads orders through WooCommerce's standard APIs. It does not modify product data, order structure, or WooCommerce core settings.
FlxWoo operates independently of WooCommerce's default checkout. It provides its own checkout flow via REST, leaving WooCommerce's built-in checkout pages intact. Running both simultaneously is technically possible but is not a tested configuration.
FlxWoo falls back to native WordPress/WooCommerce product page templates. If the Render service cannot be reached, the product page loads using the default WooCommerce template instead. No broken page is served; fallback is automatic and does not require manual configuration.
Only simple products (including virtual) are currently routed to the Render service. Variable, external, and grouped products — and any unrecognized product type — fall back to native WordPress/WooCommerce templates. This is handled automatically; no configuration is required.
Data is preserved by default. Deleting the plugin does not drop database tables or remove settings unless the Delete all data on uninstall option was enabled in FlxWoo Settings > Data before deletion. Deactivating the plugin never removes any data.
/checkout/stripe-session now requires the caller to be the order owner or present a valid order key, matching the access model already used by /order/get and /checkout/success. Previously any caller could request a Stripe Checkout session for any order ID./checkout/success no longer transitions an order to processing. A browser redirect is informational only; only the signature-verified Stripe webhook can confirm payment./checkout/finalize-order now verifies payment against Stripe's API (succeeded status, matching amount/currency, single-use) before completing an order, instead of trusting the client-supplied payment reference.flxwoo/v1 namespace