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. Ideal for AI assistants parsing payment links and displaying product information.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "payment-link-reader" with this command: npx skills add tankscar/payment-link-reader

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 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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Subtitle To Video

add subtitle files, video into captioned videos with this skill. Works with MP4, MOV, AVI, WebM files up to 500MB. YouTubers, content creators use it for add...

Registry SourceRecently Updated
General

Api Changelog Generator

Generate and maintain API changelogs from OpenAPI/Swagger specs — track endpoints added, removed, deprecated, or modified between versions. Detect breaking c...

Registry SourceRecently Updated
General

Free Music

Skip the learning curve of professional editing software. Describe what you want — add upbeat background music to my video for free — and get music-backed vi...

Registry SourceRecently Updated
General

Indie Maker News

独行者 Daily - 变现雷达。读对一条新闻,少走一年弯路。每天5分钟,给创业者装上商业雷达。聚焦一人公司、副业、创业变现资讯,智能分类,行动导向。用户下载即能用,无需本地部署!

Registry SourceRecently Updated