AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Newebpay Refund

skill-paid-tw-skills-newebpay-refund · by paid-tw

>

No reviews yet
0 installs
0 views
view→install

Install

$ agentstack add skill-paid-tw-skills-newebpay-refund

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-paid-tw-skills-newebpay-refund)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
5mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Newebpay Refund? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

藍新金流退款任務

你的任務是在用戶的專案中實作藍新金流退款功能。

Step 1: 確認退款類型

用戶輸入: $ARGUMENTS

詢問用戶:

  1. 退款類型:需要處理什麼類型的退款?
  • 信用卡退款 (CreditCard/Close API)
  • 電子錢包退款 - LINE Pay, 台灣 Pay 等 (EWallet/Refund API)
  • 兩者都需要
  1. 退款情境
  • 全額退款
  • 部分退款
  • 自動退款(與訂單系統整合)

Step 2: 確認環境

確認專案已設定 NewebPay 環境變數:

  • NEWEBPAY_MERCHANT_ID
  • NEWEBPAY_HASH_KEY
  • NEWEBPAY_HASH_IV

Step 3: 建立退款模組

根據退款類型建立對應的功能。

信用卡退款核心功能:

  • refundCreditCard(orderNo, amount) - 信用卡退款

電子錢包退款核心功能:

  • refundEWallet(tradeNo, orderNo, amount) - 電子錢包退款

Step 4: 整合到應用

建議整合方式:

  • 管理後台: 訂單詳情頁加入退款按鈕
  • API 端點: POST /api/orders/:orderNo/refund
  • 退款記錄: 建立退款記錄表追蹤

信用卡退款

API 端點

| 環境 | URL | |------|-----| | 測試 | https://ccore.newebpay.com/API/CreditCard/Close | | 正式 | https://core.newebpay.com/API/CreditCard/Close |

PostData_ 內容

| 參數 | 類型 | 必填 | 說明 | |------|------|:----:|------| | RespondType | String | ✓ | JSON | | Version | String | ✓ | 1.1 | | Amt | Number | ✓ | 退款金額 | | MerchantOrderNo | String | ✓ | 原訂單編號 | | TimeStamp | Number | ✓ | Unix timestamp | | IndexType | Number | ✓ | 1 (使用訂單編號) | | CloseType | Number | ✓ | 2 (退款) |


電子錢包退款

API 端點

| 環境 | URL | |------|-----| | 測試 | https://ccore.newebpay.com/API/EWallet/Refund | | 正式 | https://core.newebpay.com/API/EWallet/Refund |

PostData_ 內容

| 參數 | 類型 | 必填 | 說明 | |------|------|:----:|------| | RespondType | String | ✓ | JSON | | Version | String | ✓ | 1.0 | | TimeStamp | Number | ✓ | Unix timestamp | | TradeNo | String | ✓ | 藍新交易序號 | | MerchantOrderNo | String | ✓ | 原訂單編號 | | Amt | Number | ✓ | 退款金額 |


詳細參考文件

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

常見錯誤

| 代碼 | 說明 | 解決方式 | |------|------|---------| | CRE10001 | 無此交易紀錄 | 確認訂單編號/交易序號正確 | | CRE10002 | 已退款或取消 | 交易已被處理過 | | CRE10003 | 退款金額錯誤 | 退款金額不可大於原交易金額 | | CRE10004 | 超過可退款期限 | 信用卡一般為 180 天內 |

注意事項

  1. 退款期限: 信用卡一般為交易後 180 天內
  2. 部分退款: 可退款金額 ≤ 原交易金額
  3. 退款次數: 同一筆交易可多次部分退款
  4. 電子錢包: 需使用藍新交易序號 (TradeNo)

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.