Learn-skills.dev payment-integration
Implement payment integrations with SePay (Vietnamese payment gateway with VietQR, bank transfers, cards) and Polar (global SaaS monetization platform with subscriptions, usage-based billing, automated benefits). Use when integrating payment processing, implementing checkout flows, managing subscriptions, handling webhooks, processing bank transfers, generating QR codes, automating benefit delivery, or building billing systems. Supports authentication (API keys, OAuth2), product management, customer portals, tax compliance (Polar as MoR), and comprehensive SDK integrations (Node.js, PHP, Python, Go, Laravel, Next.js).
git clone https://github.com/NeverSight/learn-skills.dev
T=$(mktemp -d) && git clone --depth=1 https://github.com/NeverSight/learn-skills.dev "$T" && mkdir -p ~/.claude/skills && cp -r "$T/data/skills-md/aia-11-hn-mib/mib-mockinterviewaibot/payment-integration" ~/.claude/skills/neversight-learn-skills-dev-payment-integration-aef466 && rm -rf "$T"
data/skills-md/aia-11-hn-mib/mib-mockinterviewaibot/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.