newebpay-refund

Automate NewebPay refunds for credit card and e-wallet transactions.

271|18|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/paid-tw/skills --skill newebpay-refund
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: newebpay-refund
Source: https://github.com/paid-tw/skills/tree/main/plugins/newebpay/skills/newebpay-refund
Command: npx skills add https://github.com/paid-tw/skills --skill newebpay-refund

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a ready-to-use NewebPay refund module that simplifies handling refunds for credit cards and electronic wallets, reducing integration time and risk.

Core Features & Use Cases

  • Credit card refunds: Implement and invoke refunds through the CreditCard/Close API with proper payloads.
  • Electronic wallet refunds: Support Refund API for LINE Pay, Taiwan Pay, and other e-wallets.
  • Use Case: Integrate into your admin backend to trigger refunds from order management or customer support tools, with logging and status tracking.

Quick Start

Use the refundCreditCard(orderNo, amount) or refundEWallet(tradeNo, orderNo, amount) functions in your project, after configuring environment variables NEWEBPAY_MERCHANT_ID, NEWEBPAY_HASH_KEY, NEWEBPAY_HASH_IV, and NEWEBPAY_ENV as needed.

Frequently Asked Questions about newebpay-refund

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I process NewebPay refunds for credit card transactions?

Process NewebPay credit card refunds by calling the refundCreditCard(orderNo, amount) function, which interfaces with the CreditCard/Close API using structured payloads to automate the refund request.

Can I handle e-wallet refunds for LINE Pay and Taiwan Pay through NewebPay?

Yes, e-wallet refunds for LINE Pay and Taiwan Pay are handled through the refundEWallet(tradeNo, orderNo, amount) function, which targets the NewebPay Refund API for supported electronic wallets.

What environment variables do I need to configure for NewebPay refund integration?

Configure NEWEBPAY_MERCHANT_ID, NEWEBPAY_HASH_KEY, NEWEBPAY_HASH_IV, and NEWEBPAY_ENV environment variables to authenticate and route refund API requests to the correct NewebPay environment.

Does this NewebPay refund module support staging and production environments?

Yes, the module is environment-aware, using the NEWEBPAY_ENV variable to route refund API calls to the correct staging or production NewebPay endpoint automatically.

How do I integrate NewebPay refund functions into my order management backend?

Integrate the reusable refundCreditCard and refundEWallet functions into your admin backend to trigger refunds from order management or customer support tools with logging and status tracking.

Why are my NewebPay e-wallet refund requests returning clear error messages?

NewebPay e-wallet refund error messaging is built into the module, providing clear feedback on failed Refund API requests to help diagnose payload or authentication issues in your integration.