Agent skill

Newebpay Refund

by paid-tw in paid-tw/skills

Implements NewebPay refund functionality for credit cards and e-wallets.

MITAuto-check: notesBackend & APIs

Install Newebpay Refund

skills CLI
$ npx skills add paid-tw/skills --skill newebpay-refund -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install paid-tw/skills newebpay-refund --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/paid-tw/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/newebpay/skills/newebpay-refund .claude/skills/newebpay-refund && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
newebpay-refund
GitHub stars
284
Token cost
~611 tokens
SKILL.md length
172 words
Files
2 (incl. references)
Skills in repo
15
Repo updated
First seen
Licence
MIT

At a glance

Implements NewebPay refund functionality for credit cards and e-wallets.

  • Works in 4 steps: 確認退款類型 → 確認環境 → 建立退款模組 → …
  • Building refund processing
  • SKILL.md covers Step 1: 確認退款類型, Step 2: 確認環境, Step 3: 建立退款模組 and Step 4: 整合到應用, plus 5 more sections
  • Reaches ccore.newebpay.com and core.newebpay.com; needs NEWEBPAY_HASH_KEY

What it does

Newebpay Refund is an agent skill from paid-tw/skills. Implements NewebPay refund functionality for credit cards and e-wallets. Use when building refund processing, transaction cancellation, or return payment features for 藍新金流.

Its SKILL.md is about 610 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/code-examples.md`).

It sits in Backend & APIs. The repository describes itself as: 台灣第三方金流 Skills for AI Agents - 藍新金流、綠界科技 ECPay、統一金流 PAYUNi. The licence is MIT.

When your agent uses it

  • Building refund processing
  • Transaction cancellation
  • Return payment features for 藍新金流

Example prompts

  • “Use the newebpay-refund skill to implement NewebPay refund functionality for credit cards and e-wallets”
  • “/newebpay-refund”

Requirements

  • Node.js
  • A credential in NEWEBPAY_HASH_KEY
  • Pre-approved tools (allowed-tools): Read, Write, Edit, Bash, Grep, Glob

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. 確認退款類型
  2. 確認環境
  3. 建立退款模組
  4. 整合到應用

What it can do on your machine

Read from SKILL.md and the folder at commit 1cd84bd. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Edit
    • Bash
    • Grep
    • Glob

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • ccore.newebpay.com
    • core.newebpay.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • NEWEBPAY_HASH_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Newebpay Refund loads about 611 tokens when it runs, and up to ~2k if it reads all its reference files. Until then it costs about 47 tokens; SKILL.md has 172 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~47
When it runs · the whole SKILL.md, loaded when a task matches
~611
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Write, Edit, Bash, Grep, Glob

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from paid-tw/skills at commit 1cd84bd, republished under its MIT licence (© paid-tw). 172 words, ~611 tokens.

Download SKILL.mdSave it as .claude/skills/newebpay-refund/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
newebpay-refund
description
Implements NewebPay refund functionality for credit cards and e-wallets. Use when building refund processing, transaction cancellation, or return payment features for 藍新金流.
allowed-tools
Read, Write, Edit, Bash, Grep, Glob
argument-hint
[類型: 信用卡/電子錢包]
context
fork
agent
general-purpose
disable-model-invocation
true
user-invocable
true

藍新金流退款任務

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

Step 1: 確認退款類型

用戶輸入: $ARGUMENTS

詢問用戶:

  1. 退款類型:需要處理什麼類型的退款?

    • 信用卡退款 (CreditCard/Close API)
    • 電子錢包退款 - LINE Pay, 台灣 Pay 等 (EWallet/Refund API)
    • 兩者都需要
  2. 退款情境:

    • 全額退款
    • 部分退款
    • 自動退款(與訂單系統整合)

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_ 內容
參數類型必填說明
RespondTypeString✓JSON
VersionString✓1.1
AmtNumber✓退款金額
MerchantOrderNoString✓原訂單編號
TimeStampNumber✓Unix timestamp
IndexTypeNumber✓1 (使用訂單編號)
CloseTypeNumber✓2 (退款)

電子錢包退款

API 端點
環境URL
測試https://ccore.newebpay.com/API/EWallet/Refund
正式https://core.newebpay.com/API/EWallet/Refund
PostData_ 內容
參數類型必填說明
RespondTypeString✓JSON
VersionString✓1.0
TimeStampNumber✓Unix timestamp
TradeNoString✓藍新交易序號
MerchantOrderNoString✓原訂單編號
AmtNumber✓退款金額

詳細參考文件


常見錯誤

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

注意事項

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

© paid-tw, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in plugins/newebpay/skills/newebpay-refund of paid-tw/skills.

  • SKILL.md
  • references/code-examples.md

Open the folder on GitHubat commit 1cd84bd

Compare with similar skills

Newebpay Refund next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Newebpay Refund compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Newebpay Refund this skillpaid-tw/skills284—~611Automated safety check: NotesMIT
Configuring Horizoncoollabsio/coolify63k4 repos~898Automated safety check: PassMIT
Nestjs Best Practicesrolling-scopes/rsschool-app10k6 repos~1.2kAutomated safety check: PassMIT
Sub2API AdminWei-Shaw/sub2api44k1 repos~717Automated safety check: PassLGPL-3.0
Firecrawl Build Onboardingfirecrawl/firecrawl190k1 repos~1.4kAutomated safety check: NotesISC
Obsidian BasesAtmosphere/atmosphere3.8k22 repos~3.2kAutomated safety check: PassApache-2.0

Similar skills

  • Configuring Horizon

    coollabsio/coolify

    A skill your agent uses whenever the user mentions Horizon by name in a Laravel context.

    63k GitHub starsUsed in 4 repos~898 tokens
    Backend & APIsAuto-check passed
  • Nestjs Best Practices

    rolling-scopes/rsschool-app

    NestJS best practices and architecture patterns for building production-ready applications.

    10k GitHub starsUsed in 6 repos~1.2k tokens
    Backend & APIsAuto-check passed
  • Sub2API Admin

    Wei-Shaw/sub2api

    Manages a Sub2API deployment from the command line: accounts, redeem and invitation codes, groups, proxies, imports, exports and raw admin API calls.

    44k GitHub starsUsed in 1 repo~717 tokens
    Backend & APIsAuto-check passed
  • Firecrawl Build Onboarding

    firecrawl/firecrawl

    Gets Firecrawl working in a project: signs you in through the browser, saves FIRECRAWL_API_KEY to .env and picks the first SDK or REST path.

    190k GitHub starsUsed in 1 repo~1.4k tokens
    Backend & APIsAuto-check: notes
  • Obsidian Bases

    Atmosphere/atmosphere

    Create and edit Obsidian Bases (.base files) with views, filters, formulas, and summaries.

    3.8k GitHub starsUsed in 22 repos~3.2k tokens
    Backend & APIsAuto-check passed
  • Fortify Development

    coollabsio/coolify

    ACTIVATE when the user works on authentication in Laravel. An agent skill from coollabsio/coolify.

    63k GitHub starsUsed in 4 repos~1.9k tokens
    Backend & APIsAuto-check passed

More from paid-tw/skills

All 15 skills in this repo
  • Kryptogo Pay Checkout

    paid-tw/skills

    Implements KryptoGO Payment checkout integration including Payment Intent creation, React SDK usePayment hook, and Direct API integration.

    284 GitHub stars~1.5k tokensUpdated 7 mo ago
    Auto-check: notes
  • Kryptogo Pay Transfer

    paid-tw/skills

    Implements KryptoGO Payment token transfer/withdrawal functionality using the Asset Pro Transfer API.

    284 GitHub stars~597 tokensUpdated 7 mo ago
    Auto-check: notes
  • Kryptogo Pay Webhook

    paid-tw/skills

    Implements KryptoGO Payment webhook/callback handling for receiving payment status notifications.

    284 GitHub stars~695 tokensUpdated 7 mo ago
    Auto-check: notes
  • Newebpay Checkout

    paid-tw/skills

    Implements NewebPay MPG checkout integration including AES256 encryption, form submission, and payment callback handling.

    284 GitHub stars~850 tokensUpdated 7 mo ago
    Auto-check: notes
  • Payuni Checkout

    paid-tw/skills

    Implements PAYUNi UPP checkout integration including AES256 encryption, form submission, and payment callback handling.

    284 GitHub stars~1.3k tokensUpdated 7 mo ago
    Auto-check: notes
  • Payuni Webhook

    paid-tw/skills

    Implements PAYUNi webhook handling including signature verification, replay attack prevention, and payment status updates.

    284 GitHub stars~1.6k tokensUpdated 7 mo ago
    Auto-check: notes

Categories

Questions about Newebpay Refund

What does Newebpay Refund do?

Implements NewebPay refund functionality for credit cards and e-wallets. Newebpay Refund is an agent skill from paid-tw/skills. Implements NewebPay refund functionality for credit cards and e-wallets.

When should I use Newebpay Refund?

Newebpay Refund fits situations like: building refund processing; transaction cancellation; return payment features for 藍新金流.

How do I install Newebpay Refund in Claude Code?

Run `npx skills add paid-tw/skills --skill newebpay-refund -a claude-code`. Or copy the skill folder (plugins/newebpay/skills/newebpay-refund in paid-tw/skills) into .claude/skills/newebpay-refund in your project. Claude Code loads it when a task matches its description.

How do I install Newebpay Refund in Codex?

Run `npx skills add paid-tw/skills --skill newebpay-refund -a codex`. Or copy the skill folder (plugins/newebpay/skills/newebpay-refund in paid-tw/skills) into .agents/skills/newebpay-refund in your project. Codex loads it when a task matches its description.

Can I use Newebpay Refund in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add paid-tw/skills --skill newebpay-refund -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/newebpay-refund, .gemini/skills/newebpay-refund, .github/skills/newebpay-refund and .opencode/skills/newebpay-refund in your project.

What does Newebpay Refund need to run?

Going by SKILL.md and its folder, Newebpay Refund needs credentials named NEWEBPAY_HASH_KEY. Our summary lists: Node.js; A credential in NEWEBPAY_HASH_KEY. Its frontmatter pre-approves these tools: Read, Write, Edit, Bash, Grep, Glob.

Does Newebpay Refund access the network?

SKILL.md names 2 domains. In commands or code: ccore.newebpay.com and core.newebpay.com; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.

Is Newebpay Refund safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Newebpay Refund use?

Newebpay Refund is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Newebpay Refund use?

About 611 tokens (SKILL.md is roughly 2.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.4k tokens, read only when the agent opens those files.

What are the alternatives to Newebpay Refund?

Skills that share tags, products or a category with Newebpay Refund: Configuring Horizon (coollabsio/coolify, 63k stars), Nestjs Best Practices (rolling-scopes/rsschool-app, 10k stars), Sub2API Admin (Wei-Shaw/sub2api, 44k stars) and Firecrawl Build Onboarding (firecrawl/firecrawl, 190k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Newebpay Refund?

paid-tw (a GitHub organization) maintains it in paid-tw/skills, which has 284 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on March 7, 2026.

Source: paid-tw/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.