ecpay
Provides ECPay (綠界科技) integration guide including payment setup and electronic invoice integration. Use when integrating ECPay…
Implements 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.
$ npx -y skills add paid-tw/skills --skill newebpay-checkout --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/newebpay-checkoutContext preview
The summary Claude sees to decide when to auto-load this skill.
Implements 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.
name: newebpay-checkout description: > Implements 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. argument-hint: "[支付方式: 信用卡/LINE Pay/ATM/超商]" context: fork agent: general-purpose disable-model-invocation: true allowed-tools: - Read - Write - Edit - Bash - Grep - Glob user-invocable: true
你的任務是在用戶的專案中實作藍新金流 MPG 幕前支付功能。
完成以下步驟即可完成串接:
---
詢問用戶:
1. **框架類型**:你使用什麼框架?
2. **支付方式**:需要支援哪些支付方式?(可複選)
用戶輸入: `$ARGUMENTS`
搜尋專案中的 `.env` 或設定檔,確認是否已設定:
若未設定,引導用戶設定環境變數。
根據用戶框架建立支付模組檔案。
**建立位置建議:**
**核心功能:** 1. `encrypt(data)` - AES256 加密 2. `decrypt(data)` - AES256 解密 3. `generateSha(tradeInfo)` - SHA256 簽章 4. `createOrder(orderData)` - 建立訂單並回傳表單資料 5. `handleNotify(payload)` - 處理回調通知
根據框架建立支付表單,需包含:
<form method="post" action="https://ccore.newebpay.com/MPG/mpg_gateway">
<input type="hidden" name="MerchantID" value="{商店代號}">
<input type="hidden" name="TradeInfo" value="{加密資料}">
<input type="hidden" name="TradeSha" value="{SHA256簽章}">
<input type="hidden" name="Version" value="2.3">
<button type="submit">前往付款</button>
</form>建立兩個端點:
1. **NotifyURL** (背景通知): `POST /payment/notify`
2. **ReturnURL** (前台返回): `GET/POST /payment/return`
引導用戶進行測試: 1. 使用測試環境 `https://ccore.newebpay.com` 2. 測試信用卡號: `4000-2211-1111-1111` 3. 驗證加密解密正確性 4. 確認回調可正常接收
---
| 環境 | URL | |------|-----| | 測試 | `https://ccore.newebpay.com/MPG/mpg_gateway` | | 正式 | `https://core.newebpay.com/MPG/mpg_gateway` |
| 參數 | 類型 | 說明 | |------|------|------| | MerchantID | String(15) | 商店代號 | | RespondType | String | `JSON` | | TimeStamp | Number | Unix timestamp | | Version | String | `2.3` | | MerchantOrderNo | String(30) | 訂單編號(不可重複)| | Amt | Number | 金額 | | ItemDesc | String(50) | 商品描述 | | Email | String(50) | 付款人 Email | | ReturnURL | String | 前台返回網址 | | NotifyURL | String | 背景通知網址 |
| 參數 | 值 | 說明 | |------|:---:|------| | CREDIT | 1 | 信用卡 | | INST | 3,6,12 | 分期期數 | | LINEPAY | 1 | LINE Pay | | APPLEPAY | 1 | Apple Pay | | GOOGLEPAY | 1 | Google Pay | | VACC | 1 | ATM 轉帳 | | CVS | 1 | 超商代碼 | | BARCODE | 1 | 超商條碼 |
---
台灣第三方金流 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…