Skip to content
psnwdPublic

About

Claude skills for payment gateways. PayHere, OnePay, WebXPay, KOKO and Genie Business: correct integration code in 7 languages, plus support answers.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Gatewise: Claude skills for payment gateways

Teach Claude the payment gateway you're integrating, so the code it writes actually works.

Install · What to ask · Cookbook · Gateways · Test results · Add a gateway

verify MIT 5 gateways


What is this?

Payment gateways have odd rules: a hash that must be built in a very specific order, a status code that means "success" on one gateway and "declined" on another, a feature that only works on the live site, never the sandbox.

Claude doesn't know these details well. Left alone, it guesses, and a wrong guess in payments means failed checkouts or orders marked paid when they aren't.

Gatewise fixes that. Each gateway gets a skill: a small folder of notes, checked code examples and a helper script that Claude reads before it answers. You just ask normally. Claude picks the right gateway notes by itself.

No servers, no accounts, no API keys. It's plain files. Nothing is sent anywhere.

Supported gateways

Gateway Country What Claude can now help with
PayHere Sri Lanka Checkout, subscriptions, saved cards, refunds, plans and fees, sandbox cards, plugins
OnePay Sri Lanka Redirect checkout, JS SDK, payment links, card on file, refunds, payouts, plugins
WebXPay Sri Lanka RSA-encrypted checkout, saved cards and recurring (Token V2), gateway IDs, plugins
Koko Sri Lanka BNPL, RSA-signed orderCreate form, signed server callback, Order View API
Gatewise router Sri Lanka Optional: picks the right gateway skill from your region, features and stack
Payment basics Any Optional: gateway-agnostic idempotency, callback verification, reconciliation, PCI scope and secrets
Payment security review Any Optional: evidence-based review of checkout, callback, refund and key handling code
Payment testing Any Optional: sandbox hosts, published test cards, live-only gaps and a go-live scenario checklist
Payment refunds Any Optional: refund/partial refund/chargeback matrix per gateway and a safe refund endpoint design
Genie Business Sri Lanka Dialog Pay Business: hosted checkout, webhooks and signatures, card on file, recurring (MIT), refunds, plugins

Beyond Sri Lanka, the router also points Stripe, PayPal, Paddle and Lemon Squeezy requests to those vendors' own current skills and docs. Gatewise embeds no API facts for them.

Every gateway skill covers both writing the integration (Node/TypeScript, Go, Python, PHP/Laravel, Rust, Java, C#) and answering support questions (fees, limits, error codes, "why did this fail?"). More gateways are planned.

What to ask

Just talk to Claude as you normally would:

  • "Add PayHere checkout to my Express app and verify the payment notification."
  • "My OnePay refund failed in sandbox, what's wrong?"
  • "I get WebXPay error 414 when I pick Lanka QR. Why?"
  • "Can I do monthly subscriptions on PayHere's free plan?"
  • "Write the WebXPay payment field in Go."
  • "How do I verify a Genie Business webhook before shipping the order?"
  • "Give me a test plan before I go live with PayHere."
  • "How do I issue a partial refund safely?"
  • "Add PayPal checkout to my Laravel app." (routed to PayPal's own toolkit)

Claude loads only the notes it needs, so answers stay fast and focused.

Ten end-to-end workflows — checkout, BNPL, webhooks, recurring, two-gateway failover, security review, refunds, adding a gateway — are written out step by step in the cookbook.

Install in 2 minutes

Pick the one that matches your tool.

Installing on someone's behalf, or driving this from an agent? Follow INSTALL_FOR_AGENTS.md; it is written as steps with a verification check.

Claude.ai (web / desktop app)

  1. Download the gateway you want from the latest Release (for example payhere.skill).
  2. Open Settings, find Skills (under Capabilities), and upload the file.
  3. Start a chat and ask a question.

Claude Code (plugin, easiest)

/plugin marketplace add psnwd/getewise
/plugin install gatewise@gatewise

This installs all gateways. To install just one, use payhere, onepay, webxpay, genie, koko, payment-basics, payment-testing, payment-refunds or payment-security-review instead of gatewise in the second command.

Claude Code (manual copy)

macOS / Linux:

git clone https://github.com/psnwd/getewise.git
cp -r getewise/skills/* ~/.claude/skills/

Windows (PowerShell):

git clone https://github.com/psnwd/getewise.git
Copy-Item -Recurse getewise\skills\* $env:USERPROFILE\.claude\skills\

Want just one gateway? Copy only that folder, for example skills/payhere.

Any agent, one command (npx skills)

npx skills add psnwd/getewise

It detects the agents you have (Claude Code, Cursor, Codex, OpenCode, Gemini CLI and ~75 more), then asks which skills to install. Add -g to make them available in every project, or --all to skip the prompts. Needs Node.js 22.20+.

# one gateway, globally, non-interactive
npx skills add psnwd/getewise --skill payhere -g -a claude-code -y

Any agent, GitHub CLI (gh skill, v2.90+)

gh skill install psnwd/getewise payhere --agent cursor --scope user

gh skill install psnwd/getewise lists the skills without installing; a name installs just that one. gh skill update and npx skills update bring them forward later.

Everything else: copy the skill folder into your tool's skills directory. Each skill is a standard SKILL.md plus a references/ folder.

How it works

 You ask a question
        │
        ▼
 Claude sees "PayHere" / "OnePay" / "WebXPay" / "Genie" in it   ──►  loads that gateway's SKILL.md
        │
        ▼
 SKILL.md says which topic file to read                ──►  references/recurring.md, refund.md ...
        │
        ▼
 Claude answers using those notes, checked code,
 and a helper script (for hashes / signatures)

Inside each skill:

skills/payhere/
├── SKILL.md          # short guide + routing table + the rules people most often get wrong
├── references/       # one file per topic (checkout, recurring, refunds, errors, code...)
└── scripts/          # tiny tools, e.g. build or verify a request hash

How good is it?

Each skill was tested on three realistic questions, once with the skill and once without it. Answers were graded against a checklist taken from the gateway's own docs.

Gateway With Gatewise Without
PayHere 100% 47%
OnePay 100% 27%
WebXPay 100% 53%
Genie Business 100% 53%

What the "without" answers got wrong: invented endpoints, a made-up signature scheme, "no paid plans exist", treating a declined status code as success, and skipping the webhook signature check. Full numbers are in docs/benchmarks.

Be honest about the limits: that's three questions per gateway, one run each, so treat it as a strong signal and not a guarantee. The hash and encryption code was run and checked for the languages noted in each skill, but nothing here was tested against a live merchant account.

Good to know

  • Unofficial. Gatewise isn't made by or affiliated with PayHere, OnePay, WebXPay, Genie Business (Dialog), Koko or their banks. Names belong to their owners.
  • Docs change. Notes come from each gateway's public docs (read October 2026, re-checked 13 November 2026). Fees, limits and policies can change, and each skill tells Claude to say so and send contract questions to the gateway. What the re-check resolved, and what is still unpublished, is in docs/doc-recheck-2026-11.md.
  • Gaps are flagged, not guessed. When a gateway's docs are missing or contradict themselves, the skill lists it in references/troubleshooting.md and Claude is told to say so instead of inventing an answer.
  • Test in sandbox first, then go live. Never paste real secrets into chat.

Add a gateway

Know another gateway's docs? Adding one takes an afternoon:

  1. Copy templates/gateway-skill to skills/<name>.
  2. Fill the reference files from the gateway's docs.
  3. Add three test questions under evals/<name>.
  4. Run python scripts/package.py <name>, add the skill to .claude-plugin/marketplace.json, then python scripts/verify.py.

Full steps: docs/adding-a-gateway.md. Contributions welcome, see CONTRIBUTING.md.

Project layout

gatewise/
├── COOKBOOK.md    ten worked workflows: what to say, what the agent does
├── skills/        one folder per gateway (this is what you install)
├── dist/          build output (gitignored), made by scripts/package.py
├── .claude-plugin/ plugin + marketplace manifests (for /plugin install)
├── .github/       CI (verify on every PR) and release workflow
├── evals/         the test questions and graders for each skill
├── docs/          benchmarks, logo notes, how to add a gateway
├── templates/     blank starter for a new gateway
├── scripts/       package.py (build .skill files), verify.py (CI checks)
└── assets/        logo, icons, banner

Licence

MIT, including the logo and brand assets.

Contributing

New gateway, a fix or a test question: see CONTRIBUTING.md. Security notes are in SECURITY.md; changes are in CHANGELOG.md. MIT licensed.

About

Claude skills for payment gateways. PayHere, OnePay, WebXPay, KOKO and Genie Business: correct integration code in 7 languages, plus support answers.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages