下单
创建预下单交易,通过返回的信息进行支付。
只支持移动端支付。通过配置,可以支持以下支付:
微信,支付宝,云闪付OCT,ICBC,MPGSPAYME,UEPAY,BOCVMP(bocpay)
相关信息
{domain}/Servlet/JSAPIService.do
https:/VMP/Servlet/JSAPIService.do
| 名称 | 类型 | 描述 | 要求 |
|---|---|---|---|
| service | String | 接口名称service.united.wap.PreOrder | |
| user_confirm_key | String(12) | 用户Key,由 eftPay 提供 | |
| transaction_amount | String(8) | 金额。要求数字,小数位最大长度为2 | |
| out_trade_no | String(28) | 商户订单号 | |
| buyerType | String(7) | 设备类型ios,android,others | |
| subject | String(256) | 交易信息 | |
| body | String(128) | 在需要描述各种商品的情况下,建议积累描述商品的字符串 | |
| pay_scene | String | 支付场景 固定: WAP | |
| fee_type | String(5) | 货币类型,HKD,CNY默认: HKD | |
| tid | String(20) | 商户终端号 | |
| notify_url | String(240) | 通知地址,投产环境只支持 80 和 443 端口,其他端口需要申请 | |
| return_url | String(240) | 支付完成后的返回地址。不能携带参数,投产环境只支持 80 和 443 端口,其他端口需要申请 | |
| active_time | String | 有效时间,单位秒。默认30分钟,即1800 | |
| lang | String | 语言,固定值:cn,en,hk | |
| time | String | 时间,格式:yyyyMMddHHmmss | |
| sign | String(64) | 签名 |
| 名称 | 类型 | 描述 | 要求 |
|---|---|---|---|
| return_status | String(3) | 返回状态码,代表。注:此参数不可作为交易状态是否成功的判断 其他状态码见 附录3 | |
| return_char | String(100) | 返回说明,可能会变化,不能作条件判断 | |
| time | String | 时间,格式:yyyyMMddHHmmssreturn_status >= 00 时返回 | |
| sign | String(64) | 签名return_status >= 00 时返回 |
| 名称 | 类型 | 描述 | 要求 |
|---|---|---|---|
| pay_apptrade | String | 交易发起信息 | |
| user_confirm_key | String | 用户Key,由 eftPay 提供 | |
| out_trade_no | String(28) | 商户订单号 | |
| buyerType | String(7) | 设备类型 | |
| fee_type | String(5) | 货币 | |
| transaction_amount | String(8) | 交易金额 | |
| tid | String(20) | 终端号,当消费请求有送的时候返回 |
{
"pay_scene": "WAP",
"service": "service.united.wap.PreOrder",
"user_confirm_key": "S0003469",
"subject": "中文测试 test",
"transaction_amount": "0.39",
"sign": "cacaed54340aa12868ac27ee9573b9081ef46bba163ad066624fb811b24ef298",
"body": "中文测试 test",
"out_trade_no": "rrn_1686280006028",
"fee_type": "HKD",
"buyerType": "android",
"return_url": "https://vmp.eftpay.com.cn/VMP/notify/testing",
"time": "20230609110646"
}
{
"user_confirm_key": "S0003469",
"pay_apptrade": "https://vmp.eftpay.com.cn/VMP/web/payPage?userkey=12345678&outTradeNo=20190824010716&sign=5c24f30f758d86e2ba1cc1a291aa6d392f563180584f071d2d725eff52947f05",
"return_char": "",
"transaction_amount": "0.71",
"sign": "4429ed39d64a06c2b0df52f4f16b643cd1f05fdc32de82230c46c28cfb75dd81",
"fee_type": "HKD",
"out_trade_no": "rrn_1686280006030",
"buyerType": "andriod",
"return_status": "00",
"time": "20230609110646"
}

