Skip to content

Easy Wallet Pay

Description

線下悠遊付付款。

Resource

POST /payment/easy/pay

Request Body Parameters

Name Type Description
authkey string 公司認證碼
order_id string 訂單編號
shop_id string 門市編號
amount int 訂單金額
qr_code string 條碼
retry_time int 重試序號(若有進行重新請求付款的重試次數)
(optional)

Response Body Parameters

Name Type Description Memo
code int 代碼 0 : 成功
1 : 失敗
message string 訊息
pay_id string 付款編號 Q017 : 悠遊Pay
transaction_id string 交易編號
einvoiceCarrier EInvoiceCarrier 電子發票載具

Response Body Parameters - EInvoiceCarrier

Name Type Description
einvoiceCarrierType string 載具類型

ALLOWED VALUES:
  • 3J0002:手機條碼
  • CQ0001:自然人憑證條碼
einvoiceCarrierNo string 載具編號
dntFlag string 是否贈送

ALLOWED VALUES:
  • Y:是
  • N:否
dntNo string 愛心碼

Request Example

{
    "authkey": "x78s8968y5u8d718b8r6812ngzm3k2sq",
    "order_id": "1520060300001",
    "shop_id": "15",
    "amount": 1,
    "qr_code": "99801094201203406104"
}

Response Example

{
    "code": 0,
    "message": "成功",
    "pay_id": "Q017",
    "transaction_id": "112020060815129805",
    "einvoiceCarrier": {
      "einvoiceCarrierType": "3J0002",
      "einvoiceCarrierNo": "/QER3DEW",
      "dntFlag": "N",
      "dntNo": ""
    }
}