Install
openclaw skills install @xinian5216/whmcs-invoice-only-safetyUse when building or reviewing an authorized WHMCS invoice-only order adapter that creates an unpaid invoice and never takes payment. Covers pinned-product preconditions, login/cart verification, checkout field discipline, single-submit semantics, and post-submit invoice validation. Use when creating a WHMCS order that stops at an unpaid invoice, or auditing automation for accidental payment.
openclaw skills install @xinian5216/whmcs-invoice-only-safetyOverview (EN). Guardrails for WHMCS/Lagom order automation that must stop at an unpaid invoice and never move money. Covers pinned-product preconditions, positive login verification, scoped cart checks, checkout field discipline, single-submit semantics under durable state, and post-submit invoice validation. Written for authorized ordering only; creating an unpaid invoice is the intended terminal state. Applies to any agent that can drive HTTP forms (Hermes, OpenClaw, Claude Code, or a plain script).
Implement or review authorized WHMCS/Lagom automation that creates an unpaid invoice, never a payment. This does not authorize purchases, product changes, or final submissions by itself.
test-driven-development; write and run failing synthetic boundary tests before implementing each behavior. Place pytest temporary files under the configured scratch directory, not the system temporary directory.¥138.00CNY). Strip only validated currency markers before parsing Decimal amounts; reject signed negative prices, malformed grouping, and ambiguous currencies.a=view to a=checkout and lack frmCheckout. One observed Lagom store used .message-no-data .message-title with the text 您的购物车目前为空 ("your cart is currently empty"); re-verify the selector per theme instead of treating it as a constant.order.min.js confirms configuration uses ajax=1&a=confproduct plus serialized frmConfigureProduct; an empty response or explicit boolean status:true may mean success. Reject other response bodies without echoing them.Run synthetic fixture tests covering guards, unsafe gateways, credits, redirect leaks, stale tokens, invoice false success, and timeout non-retry behavior. For live login/sold-out probes, block all POSTs except login and replace password persistence with a hard refusal: a stock change must not silently turn a read-only probe into configuration, env writes, or checkout. Report separately what was verified live and what remains synthetic, and never present a test invoice as a real order.
Original prose, no third-party code. Released under MIT-0, the license ClawHub
applies to every published skill; license: is stated here so the file is also
correct when read straight from a git repository.