NeWeb Pay Get Teade Info V2
Description
藍新交易加密資訊。
Resource
POST /v2/payment/newebpay/mpg/gettradeinfo
Authorization
採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login。
Request Body Parameters
| Name | Type | Description |
|---|---|---|
| store_id | string | 商店編號 store_id/store_data 擇一填寫 |
| store_data | StoreData | 商店資訊 store_id/store_data 擇一填寫 |
| trade_data | TradeData | 訂單資料 |
Request Body Parameters - Store Data
| Name | Type | Description |
|---|---|---|
| MerchantID | string | 特店代號 |
| HashKey | string | 商店專屬加密HashKey值 |
| HashIV | string | 商店專屬加密HashIV值 |
Request Body Parameters - Trade Data
| Name | Type | Description |
|---|---|---|
| RespondType | string | 回傳格式 ALLOWED VALUES:
Default:JSON (optional) |
| TimeStamp | string | 時間戳記 EX:2014-05-15 15:00:00這個時間的時間戳記為1400137200 Default:系統時間為準 (optional) |
| Version | string | 串接程式版本 固定2.0 (optional) |
| LangType | string | 語系 ALLOWED VALUES:
Default:zh-tw (optional) |
| MerchantOrderNo | string | 商店訂單編號 |
| Amt | int(10) | 訂單金額 |
| ItemDesc | string | 商品資訊 |
| TradeLimit | int | 交易有效時間 上限900下限60 Default:不設置限制 (optional) |
| NotifyURL | string | 支付通知網址 (optional) |
| ReturnURL | string | 支付完成返回商店網址 (optional) |
| CREDIT | bit | 信用卡 ALLOWED VALUES:
(optional) |
| APPLEPAY | bit | Apple Pay ALLOWED VALUES:
(optional) |
| ANDROIDPAY | bit | Google Pay ALLOWED VALUES:
(optional) |
| SAMSUNGPAY | bit | Samsung Pay ALLOWED VALUES:
(optional) |
| LINEPAY | bit | LINE Pay ALLOWED VALUES:
(optional) |
Request Example
{
"store_id": "",
"store_data": {
"MerchantID": "",
"HashKey": "",
"HashIV": ""
},
"trade_data": {
"RespondType": "JSON",
"TimeStamp": "1400137200",
"Version": "2.0",
"LangType": "zh-tw",
"MerchantOrderNo": "00003024111300010",
"Amt": 150,
"ItemDesc": "商品描述",
"TradeLimit": 0,
"NotifyURL": "",
"ReturnURL": "",
"CREDIT": "1",
"ANDROIDPAY": "0",
"SAMSUNGPAY": "0",
"LINEPAY": "0"
}
}
Response
{
"MerchantID": "MS326758187",
"TradeInfo": "87c26a29f0790027623872eac9022e1e66cb69f104686b8f142727cc382a81e69a366bd678f328ed1873fecf8ada2ad83ad55d3ddd7955eb64bab7906789da1c19df57968145e404d097fa2b52967a96c0c240139a2b1977b8ccc21a4c2a566673100aa06288b2f49adbd1ce6ddb3e49ed3e0624515279704490dbf57043b2bb0b977dfaf259a601eba1b401c6605f6ad21b330d28ab151b6e0f8c567de8b6c51fbb0236e3196e52a3f666a9bf63567e6312b224c6dbc8ae1fc7b1ed934e2b383f7dbd35e06b3c25f162ba8c95f97dbc1aeba0b0d34e21dea43166317ffb2d7b80035cee6b04f4d58ecd1bb1f1dcc504d4520bb9ea928a8c23a5c4b827146724cb957c0f9938c0f075478874254e7edf8e7fc12e0d46fa1337636791b54e3d03961c9fc5c40376683ab4b5f5dac0ae025f470b7242dc8ee43996902739ee197d",
"TradeSha": "B2D62BD616001127C25B2D02F2886EF6E2460D0DD305F9BF58663C47CC846EF4",
"Version": "2.0",
"EncryptType": "0"
}