/newebpay:newebpay-query [查詢情境: 單筆查詢/批次對帳/狀態確認]from newebpay
Implements NewebPay (藍新金流) transaction query using QueryTradeInfo API for single order lookup, batch reconciliation, and payment status confirmation.
Ships in newebpay. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
你的任務是在用戶的專案中實作藍新金流交易查詢功能。
用戶輸入: $ARGUMENTS
詢問用戶:
查詢情境:需要什麼查詢功能?
專案框架:你使用什麼框架?
在現有的支付模組中加入查詢方法,或建立新模組。
核心功能:
generateCheckValue(orderNo, amount) - 產生 SHA256 檢核碼queryTrade(orderNo, amount) - 查詢單筆交易根據框架加入查詢功能。
建議整合方式:
GET /api/orders/:orderNo/status| 環境 | 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 | 時間戳記錯誤 | 確認伺服器時間正確 |
What SKILL.md sets; muted values are Claude Code's defaults
general-purpose), in the backgroundThree short reads, in order
Generated from the plugin's indexed repository (paid-tw/skills) — no native marketplace selected
npx claudepluginhub p/paid-tw-newebpay-plugins-newebpay4 skills in this plugin
/newebpayProvides NewebPay integration overview and guides users to the appropriate skill. Use when starting NewebPay integration, setting up environment, or needing general guidance about 藍新金流.
/newebpay-checkoutImplements NewebPay MPG checkout integration including AES256 encryption, form submission, and payment callback handling. Use when integrating payment gateway, creating checkout flows, or building 藍新金流 payment pages.
/newebpay-refundImplements NewebPay refund functionality for credit cards and e-wallets. Use when building refund processing, transaction cancellation, or return payment features for 藍新金流.
Other plugins' skills for the same job