ecpay
Provides ECPay (綠界科技) integration guide including payment setup and electronic invoice integration. Use when integrating ECPay…
Implements NewebPay transaction query functionality using QueryTradeInfo API. Use when building order status checking, transaction verification, or payment confirmation features for 藍新金流.
$ npx -y skills add paid-tw/skills --skill newebpay-query --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/newebpay-queryContext preview
The summary Claude sees to decide when to auto-load this skill.
Implements NewebPay transaction query functionality using QueryTradeInfo API. Use when building order status checking, transaction verification, or payment confirmation features for 藍新金流.
name: newebpay-query description: > Implements NewebPay transaction query functionality using QueryTradeInfo API. Use when building order status checking, transaction verification, or payment confirmation features for 藍新金流. argument-hint: "[查詢情境: 單筆查詢/批次對帳/狀態確認]" context: fork agent: general-purpose disable-model-invocation: true allowed-tools: - Read - Write - Edit - Bash - Grep - Glob user-invocable: true
你的任務是在用戶的專案中實作藍新金流交易查詢功能。
用戶輸入: `$ARGUMENTS`
詢問用戶:
1. **查詢情境**:需要什麼查詢功能?
2. **專案框架**:你使用什麼框架?
在現有的支付模組中加入查詢方法,或建立新模組。
**核心功能:** 1. `generateCheckValue(orderNo, amount)` - 產生 SHA256 檢核碼 2. `queryTrade(orderNo, amount)` - 查詢單筆交易
根據框架加入查詢功能。
建議整合方式:
---
| 環境 | URL | |------|-----| | 測試 | `https://ccore.newebpay.com/API/QueryTradeInfo` | | 正式 | `https://core.newebpay.com/API/QueryTradeInfo` |
| 參數 | 類型 | 必填 | 說明 | |------|------|:----:|------| | MerchantID | String(15) | ✓ | 商店代號 | | Version | String | ✓ | `1.3` | | RespondType | String | ✓ | `JSON` | | CheckValue | String | ✓ | SHA256 檢核碼 | | TimeStamp | Number | ✓ | Unix timestamp | | MerchantOrderNo | String(30) | ✓ | 商店訂單編號 | | Amt | Number | ✓ | 訂單金額 |
原始字串: IV={HashIV}&Amt={金額}&MerchantID={商店代號}&MerchantOrderNo={訂單編號}&Key={HashKey}
結果: SHA256 後轉大寫| 值 | 說明 | |:--:|------| | 0 | 未付款 | | 1 | 已付款 | | 2 | 付款失敗 | | 3 | 已取消 | | 6 | 退款 |
---
---
| 代碼 | 說明 | 解決方式 | |------|------|---------| | TRA10001 | 查無此筆交易 | 確認訂單編號正確 | | TRA10002 | CheckValue 檢核錯誤 | 確認參數順序與大小寫 | | TRA10003 | 時間戳記錯誤 | 確認伺服器時間正確 |
台灣第三方金流 Skills for AI Agents - 藍新金流、綠界科技 ECPay、統一金流 PAYUNi、KryptoGO 穩定幣支付 支援 Claude Code、Cursor、Codex、GitHub Copilot 等 AI coding agents。
Provides ECPay (綠界科技) integration guide including payment setup and electronic invoice integration. Use when integrating ECPay…
Implements KryptoGO Payment checkout integration including Payment Intent creation, React SDK usePayment hook, and Direct API…
Implements KryptoGO Payment query functionality for checking payment intent status and listing payment intents. Use when building…
Implements KryptoGO Payment token transfer/withdrawal functionality using the Asset Pro Transfer API. Use when building…
Implements KryptoGO Payment webhook/callback handling for receiving payment status notifications. Use when building webhook…
Provides KryptoGO Payment integration overview and guides users to the appropriate skill. Use when starting KryptoGO crypto…