Skip to content
Back to skills

Psp Integration

ASecurity

Integrate a PSP correctly: idempotency key on every money operation (charge/refund/payout), verify webhook signatures and handle them idempotently + out-of-order, model the charge state machine explicitly, and handle 3DS/SCA and hard-vs-soft declines.

  • 7 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 23, 2026
ai-agentsrust

Works with

  • cli

Security analysis

A100/100

Scanned September 23, 2026

npx -y skills add mcorbett51090/RavenClaude --skill psp-integration --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Psp Integration?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Psp Integration
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mcorbett51090-psp-integration/badge)](https://www.skillsdirectory.com/skills/mcorbett51090-psp-integration)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: psp-integration
description: "Integrate a PSP correctly: idempotency key on every money operation (charge/refund/payout), verify webhook signatures and handle them idempotently + out-of-order, model the charge state machine explicitly, and handle 3DS/SCA and hard-vs-soft declines."
---

# PSP Integration

## Idempotency everywhere
**Idempotency key** on create-charge, refund, payout. A retry without it **double-bills** — the cardinal sin.

## Webhooks
**Verify the signature** (public, untrusted endpoint). Handle **idempotently** (dedupe by event id) and **out-of-order** (at-least-once). Drive the state machine from verified webhooks.

## State machine
Model requires_action -> processing -> succeeded/failed + refunds/disputes explicitly. Don't infer state from scattered flags.

## SCA + declines
Handle **3DS/SCA** (`requires_action` is normal). Hard declines: don't retry; soft: backoff + dunning.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…