Skip to content

chenmitchell/omg-payment-skill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OMG 金流串接 Skill | OMG Payment Gateway Skill

繁體中文 | English


繁體中文

這是什麼?

這是 AI Skill 檔案,讓 AI 助手(如 Claude Code、Cowork、ChatGPT)能夠理解 OMG 金流(歐買尬第三方支付)的完整 API 規格,並協助開發者快速產生正確的串接程式碼。

公司資訊

  • 公司名稱:茂為歐買尬數位科技股份有限公司
  • 英文名稱:MacroWell OMG Digital Entertainment Co., Ltd.
  • 服務地區:台灣 (Taiwan)
  • API 文件版本:V 1.4.9 (2025-11)

支援功能(完整 API 涵蓋)

核心 API

  • AioCheckOut/V5 — 產生訂單(一次性付款、分期付款、定期定額)
  • QueryTradeInfo/V5 — 查詢訂單狀態
  • QueryCreditCardPeriodInfo — 查詢定期定額訂單資訊
  • CreditCardPeriodAction — 定期定額訂單作業(停用)
  • DoAction (CreditDetail/DoAction) — 信用卡請退款(關帳/退刷/取消/放棄)
  • QueryTrade/V2 (CreditDetail/QueryTrade/V2) — 查詢信用卡單筆明細

支援付款方式

  • 信用卡一次性付款(Credit)
  • 信用卡分期付款(CreditInstallment: 3/6/12/18/24/30 期)
  • 信用卡定期定額/訂閱制(Recurring: PeriodType D/M/Y)
  • ATM 虛擬帳號轉帳(ATM: 第一銀行/中國信託/聯邦/凱基)
  • 超商代碼繳款(CVS: 超商代碼/全家/7-11)
  • 超商條碼繳款(BARCODE: 三段式條碼 Code39)
  • AFTEE 先享後付

技術功能

  • CheckMacValue SHA256 驗證(含 .NET URL Encode 替換)
  • 付款結果通知處理(ReturnURL / OrderResultURL)
  • ATM/CVS/BARCODE 取號結果通知(PaymentInfoURL)
  • 定期定額後續扣款通知(PeriodReturnURL)
  • 額外付款資訊回傳(NeedExtraPaidInfo=Y)
  • 完整錯誤碼參考與除錯指南
  • 正式環境遷移指南
  • 冪等性處理與最佳實踐

程式碼範例

  • Python (FastAPI) 完整範例
  • Node.js (Express.js) 範例
  • PHP 範例
  • .NET/C# 範例
  • CheckMacValue 計算(Python / Node.js / PHP / .NET)

如何使用

方法一:放入專案 .skills 資料夾(Claude Code / Cowork)

# 在你的專案根目錄
mkdir -p .skills/skills/omg-payment
cp SKILL.md .skills/skills/omg-payment/SKILL.md

Claude Code 或 Cowork 會自動讀取此 Skill 來協助你串接金流。

方法二:OpenAI / ChatGPT 使用

# 使用 OpenAI 格式的 Skill 檔案
cp SKILL_OPENAI.md your-project/

SKILL_OPENAI.md 的內容貼入 ChatGPT 的 Custom Instructions,或上傳檔案後說「請根據這份金流文件幫我串接」。

方法三:直接告訴 AI

將 Skill 檔案的內容貼給 AI,或上傳檔案後說「請根據這份金流文件幫我串接 OMG 金流」。

測試帳號

項目
MerchantID 1000031
HashKey 265fIDjIvesceXWM
HashIV pOOvhGd1V2pJbjfX
測試卡號 4311-9522-2222-2222
CVV 222
有效期限 任意未過期月/年
廠商後台 https://vendor-stage.funpoint.com.tw
後台帳密 funstage001 / test1234

檔案結構

omg-payment-skill/
├── README.md                   # 本說明文件 (中英雙語)
├── SKILL.md                    # Claude Skill 主體(Claude Code / Cowork 用)
├── SKILL_OPENAI.md             # OpenAI Skill 主體(ChatGPT / OpenAI 用)
├── LICENSE                     # MIT License
└── examples/
    └── fastapi_example.py      # FastAPI 完整串接範例(涵蓋所有 API)

English

What is this?

This is an AI Skill file that enables AI assistants (such as Claude Code, Cowork, ChatGPT) to understand the complete API specification of the OMG Payment Gateway (歐買尬 third-party payment) and help developers quickly generate correct integration code.

Company Information

  • Company (Chinese): 茂為歐買尬數位科技股份有限公司
  • Company (English): MacroWell OMG Digital Entertainment Co., Ltd.
  • Service Region: Taiwan (台灣)
  • API Document Version: V 1.4.9 (2025-11)

Supported Features (Complete API Coverage)

Core APIs

  • AioCheckOut/V5 — Create Order (one-time, installment, recurring)
  • QueryTradeInfo/V5 — Query Trade Info
  • QueryCreditCardPeriodInfo — Query Recurring Payment Info
  • CreditCardPeriodAction — Recurring Payment Action (Cancel)
  • DoAction (CreditDetail/DoAction) — Credit Card Capture/Refund/Cancel/Abandon
  • QueryTrade/V2 (CreditDetail/QueryTrade/V2) — Query Credit Card Transaction Detail

Supported Payment Methods

  • Credit Card one-time payment
  • Credit Card installment (3/6/12/18/24/30 periods, E.SUN Bank only)
  • Credit Card recurring/subscription (Daily/Monthly/Yearly)
  • ATM virtual account (First Bank, CTBC, Union Bank, KGI)
  • CVS payment code (CVS code, FamilyMart, 7-11 ibon)
  • CVS barcode (3-segment Code39 barcode)
  • AFTEE buy now pay later

Technical Features

  • CheckMacValue SHA256 verification (with .NET URL Encode replacements)
  • Payment result notification handling (ReturnURL / OrderResultURL)
  • ATM/CVS/BARCODE payment info notification (PaymentInfoURL)
  • Recurring payment notification (PeriodReturnURL)
  • Extra payment info return (NeedExtraPaidInfo=Y)
  • Complete error code reference and debug guide
  • Production migration guide
  • Idempotency handling and best practices

Code Examples

  • Python (FastAPI) complete example
  • Node.js (Express.js) example
  • PHP example
  • .NET/C# example
  • CheckMacValue calculation (Python / Node.js / PHP / .NET)

How to Use

Method 1: Place in project .skills folder (Claude Code / Cowork)

# In your project root
mkdir -p .skills/skills/omg-payment
cp SKILL.md .skills/skills/omg-payment/SKILL.md

Claude Code or Cowork will automatically read this Skill to assist you with payment integration.

Method 2: OpenAI / ChatGPT Usage

# Use the OpenAI format Skill file
cp SKILL_OPENAI.md your-project/

Paste the contents of SKILL_OPENAI.md into ChatGPT's Custom Instructions, or upload the file and say "Please help me integrate the payment gateway based on this document."

Method 3: Tell AI directly

Paste the Skill file contents to the AI, or upload the file and ask for integration help.

Test Credentials

Item Value
MerchantID 1000031
HashKey 265fIDjIvesceXWM
HashIV pOOvhGd1V2pJbjfX
Test Card 4311-9522-2222-2222
CVV 222
Expiry Any future date
Vendor Backend https://vendor-stage.funpoint.com.tw
Backend Login funstage001 / test1234

File Structure

omg-payment-skill/
├── README.md                   # This file (bilingual)
├── SKILL.md                    # Claude Skill body (for Claude Code / Cowork)
├── SKILL_OPENAI.md             # OpenAI Skill body (for ChatGPT / OpenAI)
├── LICENSE                     # MIT License
└── examples/
    └── fastapi_example.py      # Complete FastAPI integration example (all APIs)

授權 | License

MIT License - 自由使用、修改、分享。Free to use, modify, and share.

作者 | Author

Mitchell Chen

本專案由 Mitchell Chen 編寫,透過 Claude (Anthropic) AI 輔助完成。 This project was written by Mitchell Chen, with assistance from Claude (Anthropic) AI.

About

OMG Payment Gateway (歐買尬金流) Claude Skill - AI-assisted payment integration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors