Integrate payments with SePay (VietQR), Polar, Stripe, Paddle (MoR subscriptions), Creem.io (licensing). Checkout, webhooks, subscriptions, QR codes, multi-provider orders.
Comprehensive payment integration skill for SePay (Vietnamese payment gateway), Polar (global SaaS monetization platform), and Stripe (global payment infrastructure).
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
│ └── stripe/ # Stripe integration guides
│ ├── stripe-best-practices.md # Integration design, API selection
│ └── stripe-upgrade.md # API versions, SDK upgrades
└── 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
Gemini CLI 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 $HOME/.gemini/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:
Choose Stripe 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 automationreferences/stripe/stripe-best-practices.md for integration designreferences/stripe/stripe-upgrade.md when upgrading API versionsAll scripts include comprehensive test coverage:
Run npm test in the scripts directory to verify functionality.
MIT
1.1.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