Dotfiles payment-integration
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.
git clone https://github.com/samhvw8/dotfiles
T=$(mktemp -d) && git clone --depth=1 https://github.com/samhvw8/dotfiles "$T" && mkdir -p ~/.claude/skills && cp -r "$T/dot_ccp/hub/skills/payment-integration" ~/.claude/skills/samhvw8-dotfiles-payment-integration && rm -rf "$T"
dot_ccp/hub/skills/payment-integration/SKILL.mdPayment Integration
Implement payment processing with SePay (Vietnamese payments) and Polar (global SaaS monetization).
When to Use
Use when implementing:
- Payment gateway integration (checkout, processing)
- Subscription management (trials, upgrades, billing)
- Webhook handling (payment notifications)
- QR code payments (VietQR, NAPAS)
- Usage-based billing (metering, credits)
- Automated benefit delivery (licenses, GitHub access, Discord roles)
- Customer portals (self-service management)
- Bank transfer automation (Vietnamese banks)
- Product catalogs with pricing
Platform Selection
Choose SePay for:
- Vietnamese market (VND currency)
- Bank transfer automation
- VietQR/NAPAS payments
- Local payment methods
- Direct bank account monitoring
Choose Polar for:
- Global SaaS products
- Subscription management
- Usage-based billing
- Automated benefits (GitHub, Discord, licenses)
- Merchant of Record (tax compliance)
- Digital product sales
Quick Reference
SePay Integration
- Overview & Auth:
- Platform capabilities, API/OAuth2 auth, supported banksreferences/sepay/overview.md - API Reference:
- Endpoints, transactions, bank accounts, virtual accountsreferences/sepay/api.md - Webhooks:
- Setup, payload structure, verification, retry logicreferences/sepay/webhooks.md - SDK Usage:
- Node.js, PHP, Laravel implementationsreferences/sepay/sdk.md - QR Codes:
- VietQR generation, templates, integrationreferences/sepay/qr-codes.md - Best Practices:
- Security, patterns, monitoringreferences/sepay/best-practices.md
Polar Integration
- Overview & Auth:
- Platform capabilities, authentication methods, MoR conceptreferences/polar/overview.md - Products & Pricing:
- Product types, pricing models, usage-based billingreferences/polar/products.md - Checkouts:
- Checkout flows, embedded checkout, linksreferences/polar/checkouts.md - Subscriptions:
- Lifecycle, upgrades, downgrades, trialsreferences/polar/subscriptions.md - Webhooks:
- Event types, signature verification, monitoringreferences/polar/webhooks.md - Benefits:
- Automated delivery (GitHub, Discord, licenses, files)references/polar/benefits.md - SDK Usage:
- TypeScript, Python, PHP, Go, framework adaptersreferences/polar/sdk.md - Best Practices:
- Security, patterns, monitoringreferences/polar/best-practices.md
Integration Scripts
- SePay Webhook Verification:
- Verify SePay webhook authenticityscripts/sepay-webhook-verify.js - Polar Webhook Verification:
- Verify Polar webhook signaturesscripts/polar-webhook-verify.js - Checkout Helper:
- Generate checkout sessions for both platformsscripts/checkout-helper.js
Implementation Workflow
SePay Implementation
- Load
for auth setupreferences/sepay/overview.md - Load
orreferences/sepay/api.md
for integrationreferences/sepay/sdk.md - Load
for payment notificationsreferences/sepay/webhooks.md - Use
for webhook verificationscripts/sepay-webhook-verify.js - Load
for production readinessreferences/sepay/best-practices.md
Polar Implementation
- Load
for auth and conceptsreferences/polar/overview.md - Load
for product setupreferences/polar/products.md - Load
for payment flowsreferences/polar/checkouts.md - Load
for event handlingreferences/polar/webhooks.md - Use
for webhook verificationscripts/polar-webhook-verify.js - Load
if automating deliveryreferences/polar/benefits.md - Load
for production readinessreferences/polar/best-practices.md
Key Capabilities
SePay:
- Payment gateway (QR, bank transfer, cards)
- Bank account monitoring with webhooks
- Order-based virtual accounts
- VietQR generation API
- 44+ Vietnamese banks supported
- Rate limit: 2 calls/second
Polar:
- Merchant of Record (global tax compliance)
- Subscription lifecycle management
- Usage-based billing (events, meters)
- Automated benefits (GitHub, Discord, licenses)
- Customer portal (self-service)
- Multi-language SDKs
- Rate limit: 300 req/min
Instructions
When implementing payment integration:
- Identify platform based on requirements (Vietnamese vs global, payment types)
- Load relevant references progressively as needed
- Implement authentication using platform-specific methods
- Set up products/pricing according to business model
- Implement checkout flow (hosted, embedded, or API-driven)
- Configure webhooks with proper verification
- Handle payment events (success, failure, refund)
- Test thoroughly in sandbox before production
- Monitor and optimize using platform analytics
Load only the references needed for current implementation step to maintain context efficiency.