充值

参数

serviceId

  HRDeposits

tranDetail

  交易信息,json格式   tranAmt:交易金额   outTradeNo:订单号

autoFillData

  可包含预填表信息,非必传

返回

callBackResult

    {
        "errorCode": "pay000000",
        "errorMsg": "Success",
        "returnCode": "000000",  // 交易状态,000000代表成功
        "returnMsg": "交易成功",
        "tranAmt": "600.07",  //交易金额
        "outTradeNo": "098999000312",//订单号
        "tranSequenceNo": "201811298300000010418315" //交易流水号
    }

  充值结果成功之后返回如上所示,returnCode成功代码为:000000

示例代码

    SHRB.Api({
        serviceId: "HRDeposits",
        data: {
            tranDetail: {
                tranAmt: ID("totalFee").value,//金额
                outTradeNo: ID("outTradeNo").value//订单号 
            },
            autoFillData: {
                "cardNo": "",
                "mobile": "",
                "revmobile": "",
                 checkData: {
                     userName: ID("checked_name").value,//用户名,非必输
                     mobile: ID("checked_phone").value//用户手机号,非必输
                }
            }
        }
    }, function (callBackResult) {
        console.log(callBackResult);
        show(callBackResult);
    })

results matching ""

    No results matching ""