Skip to content
Finance
Skill

/kryptogo-pay-query

Implements KryptoGO Payment query functionality for checking payment intent status and listing payment intents. Use when building order status checking, transaction verification, or payment confirmation features for KryptoGO 穩定幣支付.

BOOST
From plugin
paid-tw-skills
28315 skills1 agent
Install
$ npx -y skills add paid-tw/skills --skill kryptogo-pay-query --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/kryptogo-pay-query

Context preview

The summary Claude sees to decide when to auto-load this skill.

Implements KryptoGO Payment query functionality for checking payment intent status and listing payment intents. Use when building order status checking, transaction verification, or payment confirmation features for KryptoGO 穩定幣支付.

SKILL.md

kryptogo-pay-query.SKILL.md
name: kryptogo-pay-query
description: >
  Implements KryptoGO Payment query functionality for checking payment intent status
  and listing payment intents. Use when building order status checking, transaction
  verification, or payment confirmation features for KryptoGO 穩定幣支付.
argument-hint: "[查詢情境: 單筆查詢/列表查詢/狀態確認]"
context: fork
agent: general-purpose
disable-model-invocation: true
allowed-tools:
  - Read
  - Write
  - Edit
  - Bash
  - Grep
  - Glob
user-invocable: true

KryptoGO Payment 交易查詢任務

你的任務是在用戶的專案中實作 KryptoGO Payment 交易查詢功能。

Step 1: 確認需求

用戶輸入: `$ARGUMENTS`

詢問用戶:

1. **查詢情境**:需要什麼查詢功能?

  • 單筆 Payment Intent 查詢(客戶查詢、客服查詢)
  • 列表查詢與篩選(批次對帳、管理後台)
  • 支付狀態確認(Webhook 備援方案)

2. **專案框架**:你使用什麼框架?

  • 確認是否已有 KryptoGO Payment 環境設定

Step 2: 建立查詢功能

在現有的支付模組中加入查詢方法,或建立新模組。

**核心功能:** 1. `getPaymentIntent(paymentIntentId)` - 查詢單筆 Payment Intent 2. `listPaymentIntents(filters)` - 列出 Payment Intents

Step 3: 實作程式碼

根據框架加入查詢功能。

Step 4: 整合到應用

建議整合方式:

  • **API 端點**: `GET /api/payment/intent/:id`
  • **管理後台**: 訂單詳情頁顯示即時狀態
  • **定時任務**: 對帳排程(輪詢未完成的訂單)

---

API 參考

查詢單筆 Payment Intent

| 項目 | 說明 | |------|------| | 方法 | `GET` | | 路徑 | `/v1/studio/api/payment/intent/{payment_intent_id}` | | Headers | `X-Client-ID`, `X-STUDIO-API-KEY`, `Origin` |

列出 Payment Intents

| 項目 | 說明 | |------|------| | 方法 | `GET` | | 路徑 | `/v1/studio/api/payment/intents` | | Headers | `X-Client-ID`, `X-STUDIO-API-KEY`, `Origin` |

Payment Status 狀態

| 狀態 | 說明 | |------|------| | `pending` | 等待付款 | | `success` | 付款成功 | | `expired` | 付款逾時 | | `insufficient_not_refunded` | 金額不足,等待退款 | | `insufficient_refunded` | 金額不足,已退款 |

---

詳細參考文件

  • [程式碼範例 (Node.js/Python)](references/code-examples.md)

---

常見錯誤

| 代碼 | 說明 | 解決方式 | |------|------|---------| | 4001 | Invalid client_id | 確認 `X-Client-ID` 正確 | | 4002 | Invalid API key | 確認 `X-STUDIO-API-KEY` 正確 | | 4006 | Invalid payment_intent_id | 確認 Payment Intent ID 存在 |

Read more
Ships withpaid-tw-skills

台灣第三方金流 Skills for AI Agents - 藍新金流、綠界科技 ECPay、統一金流 PAYUNi、KryptoGO 穩定幣支付 支援 Claude Code、Cursor、Codex、GitHub Copilot 等 AI coding agents。

Get the whole plugin

Other skills on paid-tw-skills.

ecpay
Skill

ecpay

Provides ECPay (綠界科技) integration guide including payment setup and electronic invoice integration. Use when integrating ECPay…