Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Checkout Flows?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/adityaaatiwari-checkout-flows)
---
description: Build tamper-proof checkout flows with server-calculated pricing, SCA/3DS handling, and async order fulfillment
profile: standard
tags: payments, api, security, backend
---
# Checkout flows
Use when implementing cart totals, payment intents, tax/discount calculation, or order completion handlers.
## Server authority
- Compute item unit prices, coupons, taxes, shipping, and final totals exclusively on the server from database records—never accept totals or unit prices from client payloads.
- Validate inventory reservations, coupon eligibility, and currency support before creating payment intents or sessions.
- Pass unique server-generated order references in metadata and idempotency keys to the payment processor.
## Async completion and SCA
- Handle 3DS / Strong Customer Authentication challenges asynchronously: mark orders `pending_payment` cleanly and confirm fulfillment on verified payment webhooks rather than solely on client redirect URLs.
- Render neutral success/pending pages on return URLs if the webhook has not arrived yet, polling order state safely rather than assuming success prematurely.
## Verify
Test modified client price tampering rejections, abandoned 3DS redirects, concurrent stock exhaustion, and webhook fulfillment reconciliation.