handle-checkout-flow

Implements end-to-end checkout flows covering cart, tax, discounts, and payment confirmation.

Updated Feb 10, 2026
One-click install
npx skills add https://github.com/vesviet/agent-skills --skill handle-checkout-flow-vesviet
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: handle-checkout-flow
Source: https://github.com/vesviet/agent-skills/tree/main/core/skills/commerce/handle-checkout-flow
Command: npx skills add https://github.com/vesviet/agent-skills --skill handle-checkout-flow-vesviet

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building a checkout funnel involves coordinating cart state, server-side pricing, tax and shipping calculation, coupon validation, inventory locking, and payment confirmation, where mistakes cause overselling, double charges, or PCI compliance violations. ## Core Features & Use Cases - Server-Side Pricing and Discounts: Recalculates all line items, taxes, and shipping server-side, and applies coupons atomically with row-level locks to prevent race conditions. - Inventory and Idempotency Safety: Uses two-phase atomic inventory holds and idempotency keys so double submissions never produce duplicate charges or oversold stock. - PCI DSS and Agentic Checkout Compliance: Enforces SRI hashes, CSP nonces, tamper detection, EMV 3DS authentication, and 2026 agentic checkout patterns like spending limits and address validation. - Use Case: When adding a coupon feature to a storefront, use this Skill to implement server-side validation with atomic usage increments, recalculate totals, and verify the full funnel from cart to confirmation email. ## Quick Start Use the handle-checkout-flow skill to build a checkout flow with server-side pricing, coupon validation, and idempotent payment submission for my storefront.

Frequently Asked Questions about handle-checkout-flow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent double charges when a checkout form is submitted twice?▼

Use idempotency keys on payment intent creation so a repeated submission returns the original result instead of creating a second charge. The checkout submission must be idempotent end to end, including order persistence.

How do I validate coupon codes securely in a checkout flow?▼

Validate coupons server-side only, checking code existence, validity window, usage limits, minimum order value, and applicable SKUs. Wrap validation and usage increment in an atomic transaction with a row-level lock (SELECT ... FOR UPDATE) to prevent TOCTOU race conditions.

Stripe Tax vs TaxJar vs Avalara for checkout tax calculation?▼

Stripe Tax suits startups and mid-market merchants already in the Stripe ecosystem. TaxJar fits multi-channel merchants with moderate volumes, while Avalara AvaTax targets enterprises with high volume, complex Nexus rules, and custom ERP systems.

How do I prevent inventory overselling during concurrent checkouts?▼

Use a two-phase atomic hold: soft reserve with a TTL at checkout submission, then hard commit on payment success or release on failure. Implement it with atomic SQL or Redis Lua rather than naive read-then-write sequences.

What PCI DSS requirements apply to checkout payment pages?▼

PCI DSS v4.1.0 requirement 6.4.3 mandates inventorying all payment page scripts and loading them with Subresource Integrity hashes and a strict CSP nonce. Requirement 11.6.1 adds tamper detection monitoring of payment page headers and scripts at least weekly.

When should address validation happen in the checkout flow?▼

Address validation is a mandatory isolated step that must occur before tax calculation or shipping carrier requests. Integrate APIs like Google Maps Address Validation, Loqate, or Smarty Streets to standardize raw input into carrier-compliant addresses.