What problem does it solve?
Headless VTEX storefronts often mishandle checkout by letting the browser call sensitive VTEX Checkout APIs directly, causing security risks, broken cart persistence, and inconsistent order placement.
Core Features & Use Cases
- BFF-Proxied Checkout Operations: Ensures all checkout actions (cart create, item updates, profile/shipping/payment attachments, and order placement) are routed through a server-side BFF instead of client-side direct VTEX calls.
- OrderForm Lifecycle & Session Safety: Manages
orderFormId server-side and reuses existing carts to prevent accidental cart resets and cart manipulation.
- Cookie Preservation for Correct Checkout State: Captures and forwards
CheckoutOrderFormOwnership and checkout.vtex.com cookies between the BFF and VTEX on every request to maintain checkout continuity and ownership.
Use case: implementing a headless VTEX storefront checkout where a web chat or desktop agent UI must add items, attach shipping/payment, and place orders reliably without exposing OrderForm identifiers or sensitive customer data to the browser.
Quick Start
Use the headless-checkout-proxy skill to design your BFF endpoints so the frontend only calls your proxy for cart and checkout, while your server validates inputs, stores orderFormId in a server session, forwards required cookies to VTEX, and performs place → pay → process within the 5-minute window.