Skip to content
API Design
Command

/ecpay-debug

除錯綠界 API 串接問題 + CheckMacValue/AES 加密驗證

BOOST
From plugin
ecpay-api-skill
2306 skills6 commands
Install
$ npx -y skills add ecpay/ecpay-api-skill --agent claude-code

How it fires

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

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/ecpay-debug

Context preview

What this command does when you run it.

除錯綠界 API 串接問題 + CheckMacValue/AES 加密驗證

Command definition

ecpay-debug.md
description: 除錯綠界 API 串接問題 + CheckMacValue/AES 加密驗證

> **你需要這個指令嗎?** > - 目標:排查 CheckMacValue 計算失敗 → ✅ 是 > - 目標:排查 AES 加解密錯誤 / TransCode ≠ 1 → ✅ 是 > - 目標:排查 Callback 收不到 / 解析失敗 → ✅ 是 > - 目標:建立新的付款串接 → ❌ 改用 `/ecpay-pay`

使用者遇到綠界串接問題或需要加密實作協助。請依以下步驟排查:

1. 先讀取 `SKILL.md` 的除錯決策樹,定位問題類型 2. 根據問題類型讀取對應資源:

  • CheckMacValue 驗證失敗 → `guides/13-checkmacvalue.md` + `guides/15-troubleshooting.md` §1
  • AES 解密亂碼 → `guides/14-aes-encryption.md` §常見錯誤 + 測試向量
  • 錯誤碼查詢 → `guides/20-error-codes-reference.md` 反向索引
  • Callback 收不到 → `guides/21-webhook-events-reference.md` + `guides/15-troubleshooting.md` §2
  • 上線後異常 → `guides/16-go-live-checklist.md` §上線後觀察清單

3. 若需要全新的 CheckMacValue 實作:讀 `guides/13`(12 語言 + 測試向量),用測試向量驗證正確性 4. 若需要確認最新錯誤碼定義,從 `references/` 對應檔案 web_fetch

---

排查後下一步

  • 排查完成,繼續功能開發 → `/ecpay-pay` 或對應服務指令
  • 上線前最終確認 → `/ecpay-go-live`
  • 問題仍無法解決 → 聯繫綠界客服 techsupport@ecpay.com.tw 或 (02) 2655-1775
Ships withecpay-api-skill

綠界科技官方出品 — 由 ECPay 團隊開發與維護,內容與 API 同步更新。 當前版本:V3.4

Get the whole plugin

Other commands on ecpay-api-skill.