pinme-uniwebpay

仓库创建 2025年4月13日最近提交 2 天前SkillHot 收录 21 天前
▸ 精选理由

专门处理 UniwebPay SDK 与 PinMe 环境绑定,适合需要支付功能的项目。

▸ 风险提示

涉及支付密钥与外部 SDK,部署前须做好密钥管理与合规审查。

这个 Skill 做什么

为 PinMe Cloudflare Worker 提供 UniwebPay 支付集成代码与示例。

帮 PinMe 的 Cloudflare Worker(TypeScript)接入 UniwebPay,包含生成支付链接、创建产品/价格、发起 checkout、读支付状态、退款、订阅和处理 webhook。适合写或改 PinMe Worker 支付逻辑时使用。特点是直接用 @uniwebpay/sdk 调用,密钥按 PinMe 用户下发并通过环境变量注入,配有示例代码。

▸ 展开 SKILL.md 英文原文

Use when generating, modifying, or reviewing PinMe Worker (Cloudflare Worker TypeScript) code that accepts payments through UniwebPay — payment links, products/prices, checkout sessions, payment status reads, refunds, subscriptions, or handling UniwebPay webhooks with @uniwebpay/sdk in a PinMe project.

开发编程PinMe支付集成CloudflareUniwebPay通用
3.7k
Stars
272
Forks
7
仓库内 Skill
+26
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/glitternetwork/pinme/main/skills/pinme-uniwebpay/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/glitternetwork/pinme/main/skills/pinme-uniwebpay/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# PinMe UniwebPay Payment Integration

Guides writing payment services in a PinMe Worker (Cloudflare Worker TypeScript) that call UniwebPay directly through `@uniwebpay/sdk`.

Core model: PinMe provisions the UniwebPay wallet and keys per **PinMe user** (not per project) and injects `UNIWEB_*` environment bindings at Worker deploy time; Worker code calls UniwebPay **directly with the SDK** — it does not go through PinMe payment proxy routes, and it must not call the legacy VibeCash APIs.

## Environment Binding Contract

```typescript
export interface Env {
  UNIWEB_SECRET: string;           // PinMe-provisioned sk_server_ key (server-side only)
  UNIWEB_WEBHOOK_SECRET?: string;  // wallet-l
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有