跳至主要內容

Google Pay 令牌支付


通過整合 Google Pay 獲取的付款令牌進行支付。付款服務機構為 mpgs

相關信息

{domain}/Servlet/JSAPIService.do

https://vmp.eftpay.com.cn/VMP/Servlet/JSAPIService.do

名稱類型描述要求
serviceString接口名稱, service.mpgs.token.GooglePay
user_confirm_keyString(12)用戶Key,由 eftPay 提供
token_idString通過整合 Google Pay 獲取的付款令牌
transaction_amountString(8)金額。要求數字,小數位最大長度為2
out_trade_noString(28)商戶訂單號
payTypeString(6)支付類型, Mpgs
buyerTypeString(7)設備類型
iosandroidothers
subjectString(256)交易信息
walletString(20)錢包類型, MPGS
bodyString(128)在需要描述各種商品的情況下,建議積累描述商品的字串
pay_sceneString支付場景,默認請傳 TOKEN_GOOGLE_PAY
fee_typeString(5)貨幣類型, HKD
tidString(20)商戶終端號
notify_urlString(240)通知地址,投產環境只支持 80443 端口,其他端口需要申請
timeString時間,格式: yyyyMMddHHmmss
signString(64)簽名

名稱類型描述要求
return_statusString(3)返回狀態碼,代表。注:此參數不可作為交易狀態是否成功的判斷
其他狀態碼見 附錄3
return_charString(100)返回說明,可能會變化,不能作條件判斷
return_status 大於 00 時返回
timeString時間,格式:yyyyMMddHHmmss
return_status >= 00 時返回
signString(64)簽名
return_status >= 00 時返回

名稱類型描述要求
token_idString通過整合 Google Pay 獲取的付款令牌
user_confirm_keyString用戶Key,由 eftPay 提供
trade_noString(64)支付提供方單號
transaction_idString(64)支付提供方單號
gmt_paymentString交易時間,格式: yyyy-MM-dd HH:mm:ss
trade_typeString(10)交易類型
SALE
pay_sceneString支付場景
out_trade_noString(28)商戶訂單號
eft_trade_noString(28)依付得訂單號
eftpay_trade_noString(28)依付得訂單號
total_feeString(8)金額
currencyString(5)貨幣類型
walletString(20)錢包類型
trade_statusString(32)交易狀態,見 附錄2
tidString(20)商戶終端號

{
	"pay_scene": "TOKEN",
	"user_confirm_key": "S0004152",
	"wallet": "MPGS",
	"subject": "subject 测试 20231010123131",
	"transaction_amount": "0.34",
	"sign": "a80efaa4f936dbf40be……4e27a58da266d502b61c43c7e46d30",
	"fee_type": "HKD",
	"body": "body测试",
	"tid": "123",
	"payType": "Mpgs",
	"out_trade_no": "20231010123131",
	"token_id": "{\"signature\":\"MEUCIAiKEFLtyByPibw13tGQUu8su……mSOGC9PhokyrnhLFF+kE2lt5Fsi26Y5rOTPZf/8A\\\\u003d\\\"}\"}",
	"service": "service.mpgs.token.GooglePay",
	"buyerType": "andriod",
	"time": "20231010123131"
}

支付成功

{
	"token_id": "",
	"user_confirm_key": "S0004152",
	"trade_no": "328304169361",
	"transaction_id": "328304169361",
	"gmt_payment": "2023-10-10 12:31:37",
	"trade_type": "SALE",
	"out_trade_no": "20231010123131",
	"eft_trade_no": "8520000212700003682237ec6pun125",
	"eftpay_trade_no": "8520000212700003682237ec6pun125",
	"total_fee": "0.34",
	"currency": "HKD",
	"wallet": "MPGS",
	"trade_status": "TRADE_SUCCESS",
	"tid": "123",
	"time": "20231010123137",
	"return_status": "00",
	"return_char": "",
	"sign": "3b3afa32a10daff87fbe3bde2605b05ad89cb420da5569a37c4106b05b7de540"
}

支付失敗

{
	"token_id": "",
	"user_confirm_key": "S0004152",
	"trade_no": "",
	"transaction_id": "",
	"gmt_payment": "",
	"trade_type": "SALE",
	"out_trade_no": "20231010110914000026",
	"eft_trade_no": "8520000212700003682237ec391l101",
	"eftpay_trade_no": "8520000212700003682237ec391l101",
	"total_fee": "0.02",
	"currency": "HKD",
	"wallet": "MPGS",
	"trade_status": "TRADE_CLOSED",
	"tid": "123",
	"time": "20231010111527",
	"return_status": "00",
	"return_char": "",
	"sign": "eec40ad492bc498ac9f1f46c62eeac85f058b1733a42ad544385b14ce8932062"
}

查詢、通知和退款