PinMe UniwebPay Payment Integration
Guides Claude in writing PinMe Worker (Cloudflare Worker TypeScript) payment code that calls UniwebPay directly via @uniwebpay/sdk.
Web & APIAdvanced★ 3,743⑂ 276AI score 8/10Last updated: Sep 12, 2026
What it does
- Supplies the full rule set for adding UniwebPay payments to a PinMe-deployed Cloudflare Worker.
- Documents the PinMe-injected environment binding contract (
UNIWEB_SECRET,UNIWEB_WEBHOOK_SECRET,WORKER_URL,DB…) and how to behave when bindings are missing. - Provides a decision table for choosing payment links vs. product/price catalogs vs. checkout sessions vs. subscriptions.
- Gives a source-verified quick reference for the whole SDK surface: products, prices, checkout, payments, refunds, customers, subscriptions, links, wallet/webhook admin.
- Spells out webhook handling:
verifyWebhooksignature checks, 400 vs. 500 semantics,event.ididempotency, bypassing project auth on the webhook route, retry schedule. - Flags currency/method constraints (card = 10 currencies, wechat/alipay/paynow = SGD only), integer minor units, and a long table of common mistakes.
- Includes D1 table schemas and a complete reference Worker implementation plus a finish checklist.
Who it's for
- Developers shipping Cloudflare Workers through PinMe who need to collect payments.
- Teams using UniwebPay (@uniwebpay/sdk) for one-time payments, subscriptions, or refunds.
- Anyone who wants AI-generated payment code to follow strict security and idempotency rules.
Examples
- "Add a fixed-price donation button" → generates a
links.createroute returning a reusable/p/link withwebhookUrlbuilt fromenv.WORKER_URL. - "Add a cart checkout endpoint" → creates the product/price once, persists the
priceId, then returns a 24-hourcheckout.createsession URL. - "Mark orders paid on payment success" → produces a webhook handler that reads the raw body once, verifies the signature, enforces
event.ididempotency, and validates amount/currency before updating D1.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/glitternetwork/pinme/HEAD/skills/pinme-uniwebpay/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the skills/pinme-uniwebpay folder from the GitHub repo glitternetwork/pinme into my ~/.claude/skills/pinme-uniwebpay/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/glitternetwork/pinme.git && mkdir -p ~/.claude/skills && cp -r pinme/skills/pinme-uniwebpay ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal in your working directory.
- Clone the repository:
git clone https://github.com/glitternetwork/pinme.git - Create the skills folder:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r pinme/skills/pinme-uniwebpay ~/.claude/skills/ - Confirm that
~/.claude/skills/pinme-uniwebpay/SKILL.mdexists. - Restart Claude Code and, inside a PinMe Worker project, ask something like "add a UniwebPay payment link route" to trigger the skill.
- For real payments, enable UniwebPay in PinMe and redeploy the project so the
UNIWEB_*bindings are injected.
View source on GitHub ↗License: MIT