🎉 Smithery is now a part of Arcade.dev! Read more in our announcement here
Implements NewebPay transaction query functionality using QueryTradeInfo API. Use when building order status checking, transaction verification, or payment confirmation features for 藍新金流.
你的任務是在用戶的專案中實作藍新金流交易查詢功能。
用戶輸入: $ARGUMENTS
$ARGUMENTS
詢問用戶:
查詢情境:需要什麼查詢功能?
專案框架:你使用什麼框架?
在現有的支付模組中加入查詢方法,或建立新模組。
核心功能:
generateCheckValue(orderNo, amount)
queryTrade(orderNo, amount)
根據框架加入查詢功能。
建議整合方式:
GET /api/orders/:orderNo/status
https://ccore.newebpay.com/API/QueryTradeInfo
https://core.newebpay.com/API/QueryTradeInfo
1.3
JSON
原始字串: IV={HashIV}&Amt={金額}&MerchantID={商店代號}&MerchantOrderNo={訂單編號}&Key={HashKey} 結果: SHA256 後轉大寫