NewebPay Refund Integration

•
171
•

Automates the implementation of NewebPay refund functionality for credit cards and e-wallets in web applications.

This skill streamlines the process of integrating NewebPay (藍新金流) refund capabilities into your project. It provides structured guidance and implementation patterns for both credit card (Close API) and e-wallet (Refund API) transactions, supporting both full and partial refunds. By automating the setup of API endpoints, request payloads, and environment variable checks, it helps developers build secure and reliable payment reversal features for e-commerce backends and administrative dashboards.

主要功能

01Standardized data structures for RespondType, Version, and PostData
02171 GitHub stars
03Supports Credit Card (Close API) and E-Wallet (Refund API) methods
04Guides secure environment variable configuration for Merchant credentials
05Implements logic for both full and partial refund scenarios
06Comprehensive error code handling for common NewebPay API issues

使用场景

01Adding refund functionality to an e-commerce order management dashboard
02Integrating LINE Pay or Taiwan Pay refund APIs into a backend service
03Building automated transaction cancellation logic for customer returns