← 返回
未分类 中文

Payment Link Reader

Fetch product info by payment link ID. Calls GStable API to get payment link details, returns product name, description, price, and supported payment tokens....
根据支付链接ID获取产品信息,调用GStable API获取支付链接详情,返回产品名称、描述、价格及支持的支付代币。
tankscar tankscar 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 395
下载
💾 1
安装
1
版本
#latest

概述

Payment Link Reader

A skill that fetches product information from a GStable Payment Link. It calls the GStable API - Get Payment Link endpoint and returns product details and supported payment methods.

Flow

Call API (GET /payment/link/:linkId)
        ↓
Return product info (name, description, price, payment tokens)

Installation (OpenClaw)

clawhub install payment-link-reader
cd ~/.openclaw/skills/payment-link-reader
npm install

For manual installation, copy the payment-link-reader directory to ~/.openclaw/skills/ or ./skills/, then run npm install.

Usage

# Fetch product info by link_id
npm run get-link -- <link_id>

Example:

npm run get-link -- lnk_BUDBgiGTWejFs8v0FbdpR3iJ83CG1tua

Output format (JSON):

{
  "linkId": "lnk_xxx",
  "linkName": "Premium Membership",
  "products": [
    {
      "name": "Premium Plan",
      "description": "Unlock all features",
      "imageUrl": "https://example.com/image.png",
      "quantity": 1,
      "unitPriceUSD": "1.00",
      "attributes": [{ "name": "Duration", "value": "1 Month" }]
    }
  ],
  "supportedPaymentTokens": [
    {
      "symbol": "USDC",
      "chainName": "Polygon",
      "chainId": "137",
      "amountInUSD": "3.00"
    }
  ]
}

API Reference

FieldDescription
--------------------
EndpointGET /payment/link/:linkId
Base URLhttps://aipay.gstable.io/api/v1 (override via GSTABLE_API_BASE_URL)
Parameterslink_id required, format lnk_xxx
Documentation[Get Payment LinkGStable Docs](https://docs.gstable.io/zh-Hans/docs/api/ai-payment/get-payment-link/)

Agent Invocation Example

When the user provides a payment link or link_id, the Agent should run the following in the skill root directory:

npm run get-link -- <link_id>

Conversation example:

User: What's in this payment link lnk_BUDBgiGTWejFs8v0FbdpR3iJ83CG1tua?

Agent: [cd {baseDir} && npm run get-link -- lnk_BUDBgiGTWejFs8v0FbdpR3iJ83CG1tua]
       "This payment link contains: Premium Plan (1.00 USD each), supports USDC on Polygon, total 3.00 USD"

Note: {baseDir} is the skill directory path. Ensure npm install has been run before execution.

Environment Variables

VariableRequiredDescription
---------------------------------
GSTABLE_API_BASE_URLNoAPI base URL, default https://aipay.gstable.io/api/v1

Response Format

When responding to the user, summarize the payment link information in a readable format including:

  • Product name
  • Product description
  • Unit price
  • Supported payment tokens
  • Blockchain network

Use Cases

  • AI assistant parsing user-shared payment links
  • Displaying product list from payment links
  • Fetching supported chains and token info
  • Validating link before payment

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 21:33 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

business-ops

Discord

steipete
当需要通过discord工具控制Discord时使用:发送消息、添加反应、发布或上传表情包、上传表情、创建投票、管理帖子/置顶/搜索、获取权限或成员/角色/频道信息,或在Discord私信或频道中处理管理操作。
★ 78 📥 37,927
business-ops

Trello

steipete
使用 Trello REST API 管理看板、列表和卡片
★ 161 📥 41,177
business-ops

Calendar

ndcccccc
日历管理与日程安排。创建事件、管理会议,并实现多日历平台同步。
★ 7 📥 23,067