headless-checkout-proxy
БесплатноБез исполняемых скриптовНе проверенApply when implementing cart, checkout, or order placement logic proxied through a BFF for headless VTEX storefronts. Covers OrderForm lifecycle, cart…
от vtex★ 47 звёзд на GitHubОб этом скилле
Checkout API Proxy & OrderForm Management
When this skill applies
Use this skill when building cart and checkout functionality for any headless VTEX storefront. Every cart and checkout operation must go through the BFF.
- Implementing cart creation, item add/update/remove operations
- Attaching profile, shipping, or payment data to an OrderForm
- Implementing the 3-step order placement flow (place → pay → process)
- Managing
orderFormIdandCheckoutOrderFormOwnershipcookies server-side
Do not use this skill for:
- General BFF architecture and API routing (use
headless-bff-architecture) - Search API integration (use
headless-intelligent-search) - Caching strategy decisions (use
headless-caching-strategy)
Decision rules
- ALL Checkout API calls (
/api/checkout/...onvtexcommercestable.com.br) MUST be proxied through the BFF. The Checkout API handles sensitive personal data (profile, address, payment-method selection). - PCI carve-out: the Send payments information call to the VTEX Payment Gateway (
POST https://{account}.vtexpayments.com.br/api/pub/transactions/{tid}/payments) MUST go directly from the browser/app tovtexpayments.com.brwhenever it carries card data. The merchant BFF MUST NOT be in the card-data path. See the dedicated hard constraint below andpayment-pci-security. - Store
orderFormIdin a server-side session, never inlocalStorageorsessionStorage. - Capture and forward
CheckoutOrderFormOwnershipandcheckout.vtex.comcookies between the BFF and VTEX on every request. - Validate all inputs server-side before forwarding to VTEX — never pass raw
req.bodydirectly. - Execute the 3-step order placement flow (place order → send payment → process order) as a single synchronous user interaction within the 5-minute window. Step 1 (place) and Step 3 (gateway callback) run in the BFF; Step 2 (send payment data to
vtexpayments.com.br) runs in the browser per the PCI carve-out above. - Always store and reuse the existing
orderFormIdfrom the session — only create a new cart when noorderFormIdexists. - Pass intermediate flow values such as
orderGroupbetween Step 1 (/place) and Step 3 (/process) through the request body, not throughreq.session. Production BFFs are typically multi-replica;express-session's defaultMemoryStore(and any per-pod cache) loses the value when the two requests land on different pods, returning a misleading "no pending order to process" 400. If a shared session store (Redis, Memcached, database) is already required fororderFormId/vtexCookies, see the Hard constraint below for why the cross-step handoff still belongs in the request body — it stays correct under partial outages, sticky-routing failures, and replay/refresh after a tab reload.
OrderForm attachment endpoints:
| Attachment | Endpoint | Purpose |
|---|---|---|
| items | POST .../orderForm/{id}/items |
Add, remove, or update cart items |
| clientProfileData | POST .../orderForm/{id}/attachments/clientProfileData |
Customer profile info |
| shippingData | POST .../orderForm/{id}/attachments/shippingData |
Address and delivery option |
| paymentData | POST .../orderForm/{id}/attachments/paymentData |
Payment method selection |
| marketingData | POST .../orderForm/{id}/attachments/marketingData |
Coupons and UTM data |
Hard constraints
Constraint: ALL Checkout API operations MUST go through BFF
Client-side code MUST NOT make direct HTTP requests to any VTEX Checkout API endpoint on vtexcommercestable.com.br/api/checkout/.... All Checkout API operations — cart creation, item management, profile updates, shipping, payment-method selection (paymentData attachment), order placement (/transaction), and order processing (/gatewayCallback) — must be proxied through the BFF.
This rule applies to the Checkout API only. The Send payments information call on vtexpayments.com.br is governed by the next constraint and goes the opposite way (browser-direct) for PCI reasons; do not generalize this rule to that endpoint.
Why this matters
Checkout endpoints handle sensitive personal data (email, address, phone, payment-method selection). Direct frontend calls expose the request/response flow to browser DevTools, extensions, and XSS attacks. Additionally, the BFF layer is needed to manage VtexIdclientAutCookie and CheckoutOrderFormOwnership cookies server-side, validate inputs, and prevent cart manipulation (e.g., price tampering).
Detection
If y
Установить headless-checkout-proxy в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл headless-checkout-proxy?
Apply when implementing cart, checkout, or order placement logic proxied through a BFF for headless VTEX storefronts. Covers OrderForm lifecycle, cart creation, item management, profile/shipping/payment attachments, orderFormId management, and secure checkout flows. Use for any headless frontend that needs to proxy VTEX Checkout API calls through a server-side layer with proper session cookie handling.
Как установить скилл headless-checkout-proxy?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл headless-checkout-proxy запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic