payment-gateway

payment-gateway is a skill for Claude Code, Codex from mercuryPark/oc-setup. It costs 39 tokens per session (275 once invoked), scanned A, original, MIT.

Guidance for connecting an application to payment services such as card processors. It covers a common interface for payments, refunds, cancellations, and payment-service callbacks called webhooks.

In plain words
What is it for?
It helps design payment integrations, process and verify webhooks, handle refunds, retry temporary failures, and test cases such as declined cards and timeouts.
Why use it?
It helps prevent duplicate charges, lost payment updates, unsafe callbacks, and unclear handling of temporary failures.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps design payment integrations, process and verify webhooks, handle refunds, retry temporary failures, and test cases such as declined cards and timeouts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mercurypark/oc-setup/payment-gateway
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mercuryPark/oc-setup --skill payment-gateway
Clone the repo
git clone --depth 1 https://github.com/mercuryPark/oc-setup

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for payment-gateway

README.md
[![agentmods](https://agentmods.dev/badge/skills/mercurypark/oc-setup/payment-gateway.svg)](https://agentmods.dev/skills/mercurypark/oc-setup/payment-gateway)
Your own site
<a href="https://agentmods.dev/skills/mercurypark/oc-setup/payment-gateway"><img src="https://agentmods.dev/badge/skills/mercurypark/oc-setup/payment-gateway.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 275 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.00275
Opus 5 $0.00019 $0.00138
Sonnet 5 $0.00008 $0.00055
Haiku 4.5 $0.00004 $0.00028

Measured 7d ago against content hash 73fcb729981a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

payment-gateway scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

templates/skills/payment-gateway/SKILL.md · 52 lines

What it actually says

Payment Gateway Integration

Architecture

Abstraction Layer

interface PaymentProvider {
  createPayment(amount: number, currency: string): Promise<PaymentIntent>
  confirmPayment(paymentId: string): Promise<PaymentResult>
  refund(paymentId: string, amount?: number): Promise<RefundResult>
}

Webhook Handling

Idempotency

// Store processed webhook IDs
await redis.set(`webhook:${eventId}`, 'processed', 'EX', 86400)

// Check before processing
if (await redis.get(`webhook:${eventId}`)) {
  return { status: 'already_processed' }
}

Security

  • Verify webhook signatures
  • Use HTTPS only
  • Implement retry logic with exponential backoff

Testing

  • Always use test/sandbox mode first
  • Test edge cases:
    • Insufficient funds
    • Expired cards
    • Network timeouts
    • Webhook delays

Error Handling

  • User-friendly error messages
  • Automatic retry for transient failures
  • Detailed logging for debugging
  • Fallback payment methods
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 52 lines · 39 tokens per session scan A 73fcb729981a

Subscribe to this mod's changes

payment-gateway is a skill published in the GitHub repository mercuryPark/oc-setup (2 stars, last pushed 4mo ago), licensed MIT. It adds 39 tokens to every session and 275 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

asc-ppp-pricing

Set territory-specific pricing for subscriptions and in-app purchases using current asc setup, pricing summary, price import, and price schedule commands. Use when adjusting prices by country or implementing localized PPP strategies.

rorkai/app-store-connect-cli-skills · 45 tokens

stripe

Stripe API integration with managed OAuth. Manage customers, subscriptions, invoices, products, prices, and payments. Use this skill when users want to process payments, manage billing, or handle subscriptions with Stripe. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway).…

CraftOS-dev/CraftBot · 79 tokens

etsy-pricing-strategy

Etsy pricing — cost calculation, competitor pricing, perceived value, shipping cost integration, sales and coupons.

nexscope-ai/eCommerce-Skills · 26 tokens

amazon-wholesale-sourcing

Wholesale product sourcing — supplier discovery, negotiation, MOQ optimization, margin analysis.

nexscope-ai/Amazon-Skills · 20 tokens

ai-slop

Operational rubric that turns "don't make AI slop" into observable properties, severity levels, evidence requirements, and repair actions for interface design. Use as the reference rubric when building or reviewing marketing sites, product interfaces, dashboards, portfolios, or e-commerce pages, especially alongside…

waybarrios/opencode-power-pack · 61 tokens

payment-processor

Skill "payment-processor" from Signal-Execution-Labs/forex-trading-ai-agent, covering payment processor skill, supported services, capabilities, view balances and get all balances.

Signal-Execution-Labs/forex-trading-ai-agent · 0 tokens