ck:payment-integration
Integrate payments with SePay (VietQR), Polar (SaaS subscriptions), Stripe (global payments). Use for checkout, webhooks, QR codes, subscriptions, currency conversion, multi-provider order management, commission systems.
- License 许可
- MIT
- 所属仓库
- wojtekidd/risky
- 最近更新
- 2026-10-11
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- ck:payment-integration
- license
- MIT
- metadata
- { "author": "claudekit", "version": "2.0.0" }
- description
- Integrate payments with SePay (VietQR), Polar (SaaS subscriptions), Stripe (global payments). Use for checkout, webhooks, QR codes, subscriptions, currency conversion, multi-provider order management, commission systems.
- argument-hint
- [provider] [task]
02 资源文件 27
- 参考文档README.md7.3 KB
- 参考文档references/multi-provider-order-management-patterns.md23.0 KB
- 参考文档references/polar/benefits.md8.2 KB
- 参考文档references/polar/best-practices.md26.3 KB
- 参考文档references/polar/checkouts.md6.2 KB
- 参考文档references/polar/overview.md4.6 KB
- 参考文档references/polar/products.md5.2 KB
- 参考文档references/polar/sdk.md9.3 KB
- 参考文档references/polar/subscriptions.md7.4 KB
- 参考文档references/polar/webhooks.md8.9 KB
- 参考文档references/sepay/api.md3.2 KB
- 参考文档references/sepay/best-practices.md29.0 KB
- 参考文档references/sepay/overview.md3.5 KB
- 参考文档references/sepay/qr-codes.md5.0 KB
- 参考文档references/sepay/sdk.md4.7 KB
- 参考文档references/sepay/webhooks.md4.6 KB
- 参考文档references/stripe/stripe-best-practices.md5.3 KB
- 参考文档references/stripe/stripe-cli.md3.0 KB
- 参考文档references/stripe/stripe-js.md2.3 KB
- 参考文档references/stripe/stripe-sdks.md2.2 KB
- 参考文档references/stripe/stripe-upgrade.md5.4 KB
- 脚本scripts/.env.example619 B
- 脚本scripts/checkout-helper.js7.2 KB
- 脚本scripts/package.json324 B
- 脚本scripts/polar-webhook-verify.js5.5 KB
- 脚本scripts/sepay-webhook-verify.js5.4 KB
- 脚本scripts/test-scripts.js7.5 KB
03 SKILL.md 正文
Payment Integration
Production-proven payment processing patterns with SePay (Vietnamese bank transfers), Polar (global SaaS monetization), and Stripe (global payment infrastructure). Includes multi-provider order management, currency conversion, commission systems, and webhook handling.
When to Use
Use when implementing:
- Payment gateway integration (checkout, processing)
- Subscription management (trials, upgrades, billing)
- Webhook handling (payment notifications, idempotency)
- 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
- Multi-provider order management (Polar + SePay)
- Currency conversion (USD/VND with fallback chains)
- Commission and referral systems
- Revenue tracking and maintainer payouts
- Discount management and cross-provider sync
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
Choose Stripe for:
- Global payment infrastructure
- Enterprise-grade payment processing
- Connect platforms (marketplaces)
- Billing/subscriptions at scale
- Custom checkout experiences
- Payment Element integrations
Quick Reference
SePay Integration
- Overview & Auth:
references/sepay/overview.md- Platform capabilities, API/OAuth2 auth, supported banks - API Reference:
references/sepay/api.md- Endpoints, transactions, bank accounts, virtual accounts - Webhooks:
references/sepay/webhooks.md- Setup, payload structure, verification, retry logic - SDK Usage:
references/sepay/sdk.md- Node.js, PHP, Laravel implementations - QR Codes:
references/sepay/qr-codes.md- VietQR generation, templates, integration - Best Practices:
references/sepay/best-practices.md- Transaction parsing, order matching, webhook handling, currency conversion, invoice generation, error handling
Polar Integration
- Overview & Auth:
references/polar/overview.md- Platform capabilities, authentication methods, MoR concept - Products & Pricing:
references/polar/products.md- Product types, pricing models, usage-based billing - Checkouts:
references/polar/checkouts.md- Checkout flows, embedded checkout, links - Subscriptions:
references/polar/subscriptions.md- Lifecycle, upgrades, downgrades, trials - Webhooks:
references/polar/webhooks.md- Event types, signature verification, monitoring - Benefits:
references/polar/benefits.md- Automated delivery (GitHub, Discord, licenses, files) - SDK Usage:
references/polar/sdk.md- TypeScript, Python, PHP, Go, framework adapters - Best Practices:
references/polar/best-practices.md- SDK initialization, checkout flows, webhooks, fee calculations, discount management, error handling
Multi-Provider Patterns
- Order Management:
references/multi-provider-order-management-patterns.md- Unified order schema, currency conversion, commissions, revenue tracking, refunds, webhook idempotency
Stripe Integration
- Full Documentation: https://docs.stripe.com/llms.txt - Complete Stripe docs for LLMs
- SDKs:
references/stripe/stripe-sdks.md- Node.js, Python, Ruby, Go, PHP, Java, .NET setup & usage - Stripe.js:
references/stripe/stripe-js.md- Client-side Elements, Payment Element, Embedded Checkout - CLI:
references/stripe/stripe-cli.md- Webhook testing, logs, fixtures, local development - Best Practices:
references/stripe/stripe-best-practices.md- Integration design, API selection, Checkout vs Payment Element - Upgrading:
references/stripe/stripe-upgrade.md- API versions, SDK upgrades, Stripe.js versioning - External Docs: https://docs.stripe.com/sdks | https://docs.stripe.com/js | https://docs.stripe.com/cli
Integration Scripts
- SePay Webhook Verification:
scripts/sepay-webhook-verify.js- Verify SePay webhook authenticity - Polar Webhook Verification:
scripts/polar-webhook-verify.js- Verify Polar webhook signatures - Checkout Helper:
scripts/checkout-helper.js- Generate checkout sessions for both platforms
Implementation Workflow
SePay Implementation
- Load
references/sepay/overview.mdfor auth setup - Load
references/sepay/api.mdorreferences/sepay/sdk.mdfor integration - Load
references/sepay/webhooks.mdfor payment notifications - Use
scripts/sepay-webhook-verify.jsfor webhook verification - Load
references/sepay/best-practices.mdfor production readiness
Polar Implementation
- Load
references/polar/overview.mdfor auth and concepts - Load
references/polar/products.mdfor product setup - Load
references/polar/checkouts.mdfor payment flows - Load
references/polar/webhooks.mdfor event handling - Use
scripts/polar-webhook-verify.jsfor webhook verification - Load
references/polar/benefits.mdif automating delivery - Load
references/polar/best-practices.mdfor production readiness
Stripe Implementation
- Load
references/stripe/stripe-best-practices.mdfor integration design - Load
references/stripe/stripe-sdks.mdfor server-side SDK setup - Load
references/stripe/stripe-js.mdfor client-side Elements/Checkout - Use
stripe listenvia CLI for local webhook testing (references/stripe/stripe-cli.md) - Choose integration: Checkout (hosted/embedded) or Payment Element
- Use CheckoutSessions API for most payment flows
- Use Billing APIs for subscriptions (combine with Checkout)
- Load
references/stripe/stripe-upgrade.mdwhen upgrading API versions
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
Stripe:
- Global payment infrastructure
- CheckoutSessions, PaymentIntents, SetupIntents APIs
- Billing/subscriptions with trials, prorations
- Connect for marketplaces/platforms
- Payment Element for custom UI
- Multi-language SDKs
Instructions
- Identify platform (Vietnamese → SePay, global SaaS → Polar/Stripe)
- Load relevant references progressively
- Implement auth → products → checkout → webhooks → events
- Test in sandbox, then production
- Load only needed references to maintain context efficiency
04 同仓库更多 Skills
ckm:youtube-thumbnail-design
Design YouTube thumbnails with 17 styles, niche-specific guides, and CTR optimization. Generate complete thumbnails with text using Gemini Nano Banana Pro (4K text rendering). Actions: design, create, generate thumbnail. Niches: tech, gaming, education, cooking, fitness, business. Styles: facecam, before-after, listicle, diagram, whiteboard, bold-text, mystery, dark-dramatic. Features: AI generation with text baked in, brand identity, reference face, arrows, Google Font support.
ck:web-frameworks
Build modern full-stack web applications with Next.js (App Router, Server Components, RSC, PPR, SSR, SSG, ISR), Turborepo (monorepo management, task pipelines, remote caching, parallel execution), and RemixIcon (3100+ SVG icons in outlined/filled styles). Use when creating React applications, implementing server-side rendering, setting up monorepos with multiple packages, optimizing build performance and caching strategies, adding icon libraries, managing shared dependencies, or working with TypeScript full-stack projects.
ck:ui-styling
Create beautiful, accessible user interfaces with shadcn/ui components (built on Radix UI + Tailwind), Tailwind CSS utility-first styling, and canvas-based visual designs. Use when building user interfaces, implementing design systems, creating responsive layouts, adding accessible components (dialogs, dropdowns, forms, tables), customizing themes and colors, implementing dark mode, generating visual designs and posters, or establishing consistent styling patterns across applications.
ck:threejs
Build 3D web apps with Three.js (WebGL/WebGPU). 556 searchable examples, 60 API classes, 20 use cases. Actions: create 3D scene, load model, add animation, implement physics, build VR/XR. Topics: GLTF loader, PBR materials, particle effects, shadows, post-processing, compute shaders, TSL. Integrations: WebGPU, physics engines, spatial audio.
ck:sequential-thinking
Apply structured, reflective problem-solving for complex tasks requiring multi-step analysis, revision capability, and hypothesis verification. Use for complex problem decomposition, adaptive planning, analysis needing course correction, problems with unclear scope, multi-step solutions, and hypothesis-driven work.
ck:media-processing
Process multimedia files with FFmpeg (video/audio encoding, conversion, streaming, filtering, hardware acceleration), ImageMagick (image manipulation, format conversion, batch processing, effects, composition), and RMBG (AI-powered background removal). Use when converting media formats, encoding videos with specific codecs (H.264, H.265, VP9), resizing/cropping images, removing backgrounds from images, extracting audio from video, applying filters and effects, optimizing file sizes, creating streaming manifests (HLS/DASH), generating thumbnails, batch processing images, creating composite images, or implementing media processing pipelines. Supports 100+ formats, hardware acceleration (NVENC, QSV), and complex filtergraphs.