跳到主要内容

Visa / Mastercard 线上支付

我们目前支持在香港环境 中使用信用卡付款。 支持所有主要信用卡发卡机构。

支付整合流程

对于信用卡在线支付集成,商户可以选择以下集成方式之一

  1. QFPay Checkout Services
  2. QFPay Element SDK

异步通知

QFPay也会发送交易状态更新的异步支付通知

通知范例

{
"cardtp": "5",
"cancel": "0",
"pay_type": "802801",
"order_type": "payment",
"clisn": "054256",
"txdtm": "2021-12-08 07:04:15",
"goods_detail": "",
"out_trade_no": "354267281",
"syssn": "20211208180500020000001637",
"sysdtm": "2021-12-08 15:04:16",
"paydtm": "2021-12-08 15:06:51",
"goods_name": "",
"txcurrcd": "HKD",
"chnlsn2": "",
"cardcd": "",
"udid": "qiantai2",
"userid": "1130000355",
"txamt": "1",
"chnlsn": "",
"respcd": "0000",
"goods_info": "",
"errmsg": "success"
}

测试卡号

测试卡号可用于沙盒环境以进行结果模拟。

卡类型卡号预期结果
card - MasterCard5200000000001096成功
card - Visa4000000000001091成功
card - MasterCard5200000000001005成功 (无摩擦认证流程)
card - Visa4000000000001000成功 (无摩擦认证流程)
card - MasterCard5200000000001120失败 (认证流程)
card - Visa4000000000001125失败 (认证流程)
card - MasterCard5200000000001013失败 (无摩擦认证流程)
card - Visa4000000000001018失败 (无摩擦认证流程)