Payment gateway integration. Providers: SePay (Vietnamese: VietQR, bank transfer, cards), Polar (global SaaS: subscriptions, usage-based billing). SDKs: Node.js, PHP, Python, Go, Laravel, Next.js. Capabilities: checkout flows, subscription management, webhooks, QR code generation, benefit automation, tax compliance. Actions: integrate, implement, configure, handle payments/subscriptions/webhooks. Keywords: payment gateway, SePay, Polar, VietQR, bank transfer, subscription, usage-based billing, checkout, webhook, QR code, API key, OAuth2, product management, customer portal, tax compliance, MoR, recurring payment, invoice. Use when: integrating payment processing, implementing checkout, managing subscriptions, handling payment webhooks, generating payment QR codes, building billing systems.
Comprehensive payment integration skill for SePay (Vietnamese payment gateway) and Polar (global SaaS monetization platform).
payment-integration/
├── SKILL.md # Main skill definition
├── README.md # This file
├── references/ # Progressive disclosure documentation
│ ├── sepay/ # SePay integration guides
│ │ ├── overview.md # Auth, capabilities, environments
│ │ ├── api.md # API endpoints and operations
│ │ ├── webhooks.md # Webhook setup and handling
│ │ ├── sdk.md # SDK usage (Node.js, PHP, Laravel)
│ │ ├── qr-codes.md # VietQR generation
│ │ └── best-practices.md # Security, patterns, monitoring
│ └── polar/ # Polar integration guides
│ ├── overview.md # Auth, MoR concept, environments
│ ├── products.md # Products, pricing, usage-based billing
│ ├── checkouts.md # Checkout flows and embedded checkout
│ ├── subscriptions.md # Lifecycle, upgrades, trials
│ ├── webhooks.md # Event handling and verification
│ ├── benefits.md # Automated benefit delivery
│ ├── sdk.md # Multi-language SDK usage
│ └── best-practices.md # Security, patterns, monitoring
└── scripts/ # Integration helper scripts
├── sepay-webhook-verify.js # SePay webhook verification
├── polar-webhook-verify.js # Polar webhook verification
├── checkout-helper.js # Checkout session generation
├── test-scripts.js # Test suite for all scripts
├── package.json # Node.js package configuration
└── .env.example # Environment variable template
Claude Code will automatically activate this skill when you mention payment integration, subscriptions, webhooks, or platform-specific terms (SePay, Polar).
In conversations, simply reference the platforms:
SePay Webhook Verification:
cd .claude/skills/payment-integration/scripts
node sepay-webhook-verify.js '{"id":12345,"gateway":"Vietcombank",...}'
Polar Webhook Verification:
node polar-webhook-verify.js '{"type":"order.paid","data":{...}}' base64secret
Checkout Helper:
# SePay
node checkout-helper.js sepay '{"orderInvoiceNumber":"ORD001","orderAmount":100000,...}'
# Polar
node checkout-helper.js polar '{"productPriceId":"price_xxx","successUrl":"https://..."}'
Run Tests:
npm test
Copy .env.example to .env and configure:
# SePay
SEPAY_MERCHANT_ID=SP-TEST-XXXXXXX
SEPAY_SECRET_KEY=spsk_test_xxxxxxxxxxxxx
SEPAY_ENV=sandbox
SEPAY_WEBHOOK_API_KEY=your_key
# Polar
POLAR_ACCESS_TOKEN=polar_xxxxxxxxxxxxxxxx
POLAR_SERVER=sandbox
POLAR_WEBHOOK_SECRET=base64_secret
The skill uses progressive disclosure to minimize context usage:
Load only the references you need for your current task.
Choose SePay for:
Choose Polar for:
references/sepay/overview.md for authenticationreferences/sepay/sdk.md for integrationcheckout-helper.js to generate payment formreferences/sepay/webhooks.md for notificationssepay-webhook-verify.js to verify authenticityreferences/polar/overview.md for setupreferences/polar/products.md for pricingreferences/polar/checkouts.md for paymentreferences/polar/subscriptions.md for lifecyclereferences/polar/webhooks.md for eventsreferences/polar/benefits.md for automationAll scripts include comprehensive test coverage:
Run npm test in the scripts directory to verify functionality.
MIT
1.0.0
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer