payment-idempotency

Originally fromvtexdocs/ai-skills
Installation
SKILL.md

Idempotency & Duplicate Prevention

When this skill applies

Use this skill when:

  • Implementing any PPP endpoint handler that processes payments, cancellations, captures, or refunds
  • Ensuring repeated Gateway calls with the same identifiers produce identical results without re-processing
  • Building a payment state machine to prevent invalid transitions (e.g., capturing a cancelled payment)
  • Handling the Gateway's 7-day retry window for undefined status payments

Do not use this skill for:

Decision rules

Related skills

More from vtex/skills

Installs
205
Repository
vtex/skills
GitHub Stars
28
First Seen
Apr 6, 2026