npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

taiwan-payment-skill

v1.3.4

Published

AI-powered Taiwan Payment Gateway toolkit. Supports 10 providers: ECPay, NewebPay, PAYUNi, SmilePay, PChomePay, ezPay, PayNow, Shopline Payments, LINE Pay v4, and TapPay.

Readme


安裝

npm install -g taiwan-payment-skill

快速開始

cd /path/to/your/project

taiwan-payment init                    # 互動式
taiwan-payment init --ai claude        # Claude Code
taiwan-payment init --ai cursor        # Cursor
taiwan-payment init --ai windsurf      # Windsurf
taiwan-payment init --ai all           # 全部安裝

安裝完後,AI 助手裡用自然語言:

建立 ECPay 信用卡付款訂單,金額 2500 元
NewebPay MPG 整合 LINE Pay + Apple Pay
PChomePay 拍錢包訂單,5% P 幣回饋
PayNow PaymentIntent,啟用 LINE Pay 線上+線下扣款
TapPay 用 Prime 一次付清,remember=true 存成 card_token 供下次自動扣款

10 家金流平台

| 服務商 | 加密 / 認證 | 特色 | |---|---|---| | ECPay 綠界 | SHA256 CheckMacValue | 市佔率最高、文檔最完整 | | NewebPay 藍新 | AES-256-CBC + SHA256 | MPG 整合、信用卡記憶、13 種支付 | | PAYUNi 統一 | AES-256-GCM + SHA256 | RESTful JSON、AFTEE、iCash | | SmilePay 速買配 | Verify_key + 加權檢核碼 | 無 AES、ibon / FamiPort 直接打單 | | PChomePay 拍錢包 | Basic Auth → 8h pcpay-token | PChome 生態、5% P 幣回饋、金物流二合一 | | ezPay 簡單付 | 同 NewebPay (AES-256-CBC) | 藍新小型商家品牌、低門檻 | | PayNow 立吉富 | JWT Bearer (現代) / 動態 AES-256 (傳統) | 雙 API、Stripe-like、Apple Pay 完整 | | Shopline Payments | merchantId + apiKey | 金額以分為單位、HMAC-SHA256 webhook | | LINE Pay v4 | Channel ID/Secret + HMAC-SHA256 + Nonce | Request→Confirm 兩段、Preapproved Pay | | TapPay | Partner Key (Header) | PCI 隔離、Prime 兩段式、Card Token |

每家附完整 Python 範例 + 反推的加密實作 + 錯誤碼對照 + 測試帳號。

技能包內容

taiwan-payment/
├── SKILL.md                              # AI 技能主文檔
├── EXAMPLES.md                           # 實戰範例集
├── references/                           # 10 份 API 規格 (~9,200 行)
│   ├── ecpay-payment-api.md
│   ├── newebpay-payment-api.md
│   ├── payuni-payment-api.md
│   ├── smilepay-payment-api.md          # 反推 Mid_smilepay 加權檢核碼
│   ├── pchomepay-payment-api.md         # 含 8h token 流程
│   ├── ezpay-payment-api.md             # diff vs Newebpay
│   ├── paynow-payment-api.md            # 雙 API 並行
│   ├── shopline-payment-api.md          # Redirect + Embedded
│   ├── linepay-payment-api.md           # HMAC + Preapproved
│   └── tappay-payment-api.md            # Prime + Token 重複扣款
├── examples/                             # 10 個生產級 Python 範例
└── data/                                 # 7 份 CSV
    ├── providers.csv                    # 10 服務商完整比較
    ├── operations.csv                   # 26 個 API 操作
    ├── payment-methods.csv              # 25+ 支付方式對照
    ├── error-codes.csv                  # 130+ 錯誤碼
    └── ...

CLI 指令

taiwan-payment list                # 列出 AI 平台
taiwan-payment info                # 技能資訊
taiwan-payment update              # 檢查更新
taiwan-payment init --force        # 覆蓋安裝
taiwan-payment init --global       # 全域安裝

14 個 AI 平台支援

Claude Code · Cursor · Windsurf · Antigravity · GitHub Copilot · Kiro · Codex · Qoder · Roo Code · Gemini · Trae · OpenCode · Continue · CodeBuddy

相關套件

本套件是 Taiwan E-Commerce Toolkit 的一部分:

授權

MIT License