Dev & Engineering payment-integrationuniwebpaycloudflare-workerstypescriptwebhookssubscriptionssdk

PinMe UniwebPay Payment Integration

Write Cloudflare Worker code that takes payments through UniwebPay directly via the SDK — links, checkout, subscriptions, refunds, and webhooks.

FollowSkills review · FSRS-2.0
Use with care
60/ 100 5-point scale 3.0 / 5
1 2 3 4 5 6
1Trust17 / 25 · 3.4/5

Evidence shows strong security rules: no secrets in logs/responses/code, webhook route bypasses auth and verifies signature, dangerous operations (webhooks.set/rollSecret etc.) gated to explicit admin requests. However, static review cannot verify dependency security (SDK version, known vulns) and no rollback mechanism or explicit user confirmation steps provided. Deductions for unverified/missing items.

2Reliability8 / 20 · 2.0/5

Instructions self-consistent, reference implementation complete, error handling clear (400/500/501). But API surface claims 'verified against source' with no third-party evidence; no tests or examples validate key paths. Static review limitation; deductions for lack of executable verification and edge-case coverage.

3Adaptability13 / 15 · 4.3/5

Scenarios clear (payment links, checkout, subscriptions), boundaries explicit (no VibeCash etc.). Trigger conditions rely on semantic description without example input/output boundaries. Environment fit: UniwebPay is overseas service, may be unreachable from mainland China; deduction.

4Convention12 / 15 · 4.0/5

Documentation well-layered with environment contract, security rules, reference implementation, SQL examples. But no versioning (for SKILL.md itself), changelog, or maintenance responsibility stated (publisher unverified). Deductions for versioning and maintenance governance gaps.

5Effectiveness6 / 15 · 2.0/5

Core task (payment integration) described clearly, reference implementation provides directly usable code. But output usability unverified; static review cannot confirm actual effectiveness, and overseas service may hinder Chinese users. Deductions for lack of execution verification and applicability evidence.

6Verifiability4 / 10 · 2.0/5

Some evidence: CI workflow (exists but for CLI, not SKILL itself), tests cover CLI success paths. But SKILL key paths (SDK calls, webhook verification) have no tests or third-party validation. Deductions because evidence is indirect and does not cover skill core.

Evidence confidence:Low Reviewed Aug 07, 2026 Reviewed revision 7822b0501607
Before you use it
  • UniwebPay is an overseas service; access and payments may be restricted from mainland China networks, assess actual reachability.
  • SKILL.md claims SDK surface verified but lacks independently reproducible tests or CI coverage; relies on unverified third-party SDK.
  • No rollback or recovery steps provided; payment-related operations should be used cautiously in production.
  • Recommended to add example inputs/outputs and boundary conditions to support more accurate semantic triggering.
Review evidence [1][2][3][4][5][6][7][8]
See the full review method →

What does this skill do, and when should you use it?

This Agent Skill guides the writing of payment services in a PinMe Worker (Cloudflare Worker TypeScript) that call UniwebPay directly through the @uniwebpay/sdk. It defines the environment binding contract, SDK client setup, payment methods and currency rules, SDK surface quick reference, webhook integration, security rules, and optional D1 persistence, all backed by a complete reference implementation. It enforces that Worker code must not use PinMe payment proxy routes or legacy VibeCash APIs. It is designed for generating, modifying, or reviewing such payment-related code, ensuring correctness and security.

Reads the Worker's Env bindings to ensure UNIWEB_SECRET and related variables exist; instantiates the UniwebPay SDK client; generates SDK calls for payment links, products/prices, checkout sessions, subscriptions, refunds, and payment status checks; writes webhook handler functions with signature verification, idempotency, amount/currency/order-state validation; enforces security rules to prevent secret leakage; optionally generates D1 table schemas and SQL for order tracking; provides a complete Worker reference implementation for copy-paste or adaptation.

  1. A developer creates a new PinMe project and needs to quickly add one-time payments via payment links or checkout sessions.
  2. An existing PinMe project needs to add subscription functionality, using recurring prices and subscription sessions.
  3. A developer needs to handle UniwebPay webhooks in the Worker to automatically fulfill orders and update statuses.
  4. A team is refactoring payment code in a Worker and wants to ensure it follows security best practices, avoiding secret leakage and incorrect API usage.
  5. A project requires multiple payment methods (card, wechat, alipay, paynow) with correct currency rules enforced.

What are this skill's strengths and limitations?

Pros
  • Provides detailed SDK method and parameter documentation, reducing API lookup time.
  • Includes a complete Worker reference implementation ready to use as a template.
  • Explicit security rules prevent secret leakage and misuse of the SDK.
  • Covers webhook verification, idempotency, and retry logic thoroughly.
  • Integrates seamlessly with PinMe's environment bindings.
Limitations
  • Specific to UniwebPay and PinMe; not applicable to other payment gateways or deployment platforms.
  • Assumes Cloudflare Workers and TypeScript; not portable to other runtimes.
  • No test suite or example configurations provided; requires manual verification.
  • Depends on PinMe platform provisioning; missing UNIWEB_SECRET if not enabled or redeployed.

How do you install this skill?

This skill is part of the glitternetwork/pinme repository at skills/pinme-uniwebpay/SKILL.md. Install the entire PinMe skill collection with npx skills add glitternetwork/pinme, and the skill will be available in your Claude Code skills directory.

How do you use this skill?

In Claude Code, when you need to generate or modify UniwebPay-related code, prompt like: "Create a payment feature for my PinMe Worker using the UniwebPay SDK, supporting payment links and checkout." The skill will guide you through writing the code, including environment bindings, SDK calls, and webhook handling.

FAQ

Is this skill free to use?
The skill itself is open-source (MIT), but using UniwebPay may incur fees. The PinMe platform may also have costs; refer to the respective service terms.
What happens if my project doesn't have UniwebPay enabled?
If UNIWEB_SECRET is missing, the skill instructs to tell the user to enable UniwebPay and redeploy, rather than fabricating a value.
Can I use this skill to integrate other payment methods?
No, this skill is exclusively for UniwebPay and does not support other gateways.
Why aren't my webhook callbacks reaching my Worker?
Common causes include forgetting to set webhookUrl on the link/product, or the webhook route being blocked by the project's auth guard. The skill provides rules like using WORKER_URL to build the callback URL and handling webhooks before auth.

More skills from this repository

All from glitternetwork/pinme

Related skills