The HitPay Claude Code Plugin is the first AI payment gateway plugin for Claude Code. It connects Claude to HitPay’s live payment API through an MCP server with 28 tools, 5 auto-triggered skills, and 4 slash commands — enabling developers to build complete payment integrations by describing what they need in natural language instead of reading API documentation.Documentation Index
Fetch the complete documentation index at: https://docs.hitpayapp.com/llms.txt
Use this file to discover all available pages before exploring further.
Plugin vs. Agent Skills
HitPay offers two AI integration approaches. Choose the one that fits your workflow.| Feature | Claude Code Plugin | Agent Skills |
|---|---|---|
| Installation | /plugin marketplace add hit-pay/claude-code-plugin | npx skills add hit-pay/agent-skills |
| Live API access | 28 MCP tools (read + safe create) | None — code generation only |
| Auto-triggered skills | 5 (payment, webhook, methods, UI, QR) | 2 (payment, webhook) |
| Slash commands | 4 (/hitpay:init, /hitpay:methods, etc.) | None |
| AI assistants | Claude Code only | Claude Code, Cursor, Copilot, Windsurf |
| Sandbox support | Built-in (default environment) | Via env vars |
| Destructive operations | Excluded by design | N/A |
What’s Included
MCP Server
5 Auto-Triggered Skills
4 Slash Commands
/hitpay:init, /hitpay:methods, /hitpay:webhook-test, /hitpay:qr-checkout.Installation
Install the plugin
Set environment variables
MCP Server — 28 API Tools
The plugin’s MCP server gives Claude live access to the HitPay API. All operations are either read-only or safe-create — no destructive operations are exposed.| Category | Tools | Operations |
|---|---|---|
| Payment Requests | 5 | Create, get, list, update, delete (pending only) |
| Charges | 2 | List charges, get charge detail |
| Account & Balances | 2 | Get balances, get account status |
| Customers | 3 | Create, list, get |
| Invoices | 2 | Create, list |
| QR Codes | 4 | Get supported methods, create embedded QR, create/list static QR |
| Subscriptions | 4 | List plans, create/cancel billing, charge saved card |
| Webhooks | 3 | Create/delete webhook events, get remitter |
| Analytics | 1 | Get sales summary |
| Products | 2 | List products, get account info |
Auto-Triggered Skills
Skills activate automatically based on what you ask Claude. No manual invocation needed.| Skill | Triggers When You Say | What It Does |
|---|---|---|
| payment-integration | ”Add HitPay”, “payment checkout”, “accept payments” | Generates API routes, redirect/QR/selector checkout flows, auth headers, and test card setup |
| webhook-handler | ”webhook signature”, “verify webhook”, “payment notification” | Generates HMAC-SHA256 verification (mandatory), event routing, idempotency handling |
| payment-methods | ”methods in Malaysia”, “supported methods”, “which payment methods” | Returns country-to-method mapping with exact API codes, currencies, and availability |
| drop-in-ui | ”embed payment form”, “HitPay.js”, “checkout popup” | Generates HitPay.js script integration, init options, Next.js component, event handling |
| qr-checkout | ”QR checkout page”, “QR payment page”, “show QR code” | Generates a branded HTML page with scannable QR, countdown timer, offline-capable |
Slash Commands
| Command | Description | Example |
|---|---|---|
/hitpay:init | Scaffold a complete HitPay integration for your framework and markets | /hitpay:init nextjs sg,my |
/hitpay:methods | Look up available payment methods by country | /hitpay:methods ph |
/hitpay:webhook-test | Generate a test webhook payload and curl command | /hitpay:webhook-test charge.created |
/hitpay:qr-checkout | Generate a QR payment page for specific methods | /hitpay:qr-checkout 100 sgd paynow,qris |
Supported Payment Methods
The plugin covers 50+ payment methods across 8 markets with automatic cross-border support.| Market | Currency | Payment Methods |
|---|---|---|
| Singapore | SGD | PayNow, GrabPay, ShopeePay, Cards, Apple Pay, Google Pay |
| Malaysia | MYR | FPX, Touch ‘n Go, DuitNow, GrabPay, ShopeePay, Boost |
| Philippines | PHP | GCash, Maya, QR Ph, ShopeePay |
| Thailand | THB | PromptPay, TrueMoney |
| Indonesia | IDR | QRIS, OVO, DANA |
| Vietnam | VND | VietQR, ZaloPay |
| India | INR→SGD | UPI (with automatic FX conversion) |
| Australia | AUD | PayTo, Cards |
| Cross-border | Auto FX | 9 borderless QR methods with real-time exchange rates |
Usage Examples
- Add Payments
- Webhook Verification
- QR Checkout
- Method Lookup
- Create an API route at
app/api/payments/create/route.ts - Generate a checkout component with redirect flow
- Set up webhook handler with HMAC-SHA256 verification
- Add environment variable configuration
Prerequisites
Before installing the plugin, ensure you have:- HitPay Account — Create an account or use the sandbox environment
- API Key — Found in Settings → Payment Gateway → API Keys
- Webhook Salt — Found in Settings → Developers → Webhook Endpoints
- Claude Code — The plugin requires Claude Code (Anthropic’s CLI)
Frequently Asked Questions
What is the HitPay Claude Code Plugin?
What is the HitPay Claude Code Plugin?
How is the Claude Code Plugin different from HitPay Agent Skills?
How is the Claude Code Plugin different from HitPay Agent Skills?
Is it safe to use with production API keys?
Is it safe to use with production API keys?
Does the plugin support sandbox testing?
Does the plugin support sandbox testing?
HITPAY_ENV=sandbox). All API calls go to api.sandbox.hit-pay.com until you explicitly set HITPAY_ENV=production. Use test card 4242 4242 4242 4242 with any expiry and CVC in sandbox.What payment methods are supported?
What payment methods are supported?
Can I use this with Cursor or GitHub Copilot?
Can I use this with Cursor or GitHub Copilot?
How do I switch from sandbox to production?
How do I switch from sandbox to production?
HITPAY_ENV=sandbox to HITPAY_ENV=production and update HITPAY_API_KEY to your production API key. Your production key is found in your live HitPay Dashboard under Settings → Payment Gateway → API Keys.What frameworks does the plugin support?
What frameworks does the plugin support?