报文格式为:JSON
请求报文:{"mchnt_cd" :"商户代码", "message":"密文体"}
密文是由明文封装成json字符串 商户用富友公钥加密,富友在用富友私钥解密

#

请求明文格式如下:

#

{
"mchnt_cd" :"商户代码",
"message":"{"mchnt_cd":"0002900F0096235","order_date":"20200917","order_id":"10771600324085063","ver":"1.0.0"}"
}
对message明文json字符串进行加密 最终得到密文报文体如下:

#

{
"mchnt_cd" :"商户代码",
"message":"uX7DcjQfDmmu3SiCoANd2sUmYAN8fifC2QFuIilyFgT146h2Navc
Kf54pI85suFCUSJbqpjIntMBB4FtZxM0AWT59TjSpAd4S4zC9AFJOIXuTyPHh
5kMeQgoVNb7awmvc3CjlnDMusaNBiydWwYxo1EGRtHrwuYOkiPD3yxWgC0="
}
响应报文: {"mchnt_cd" :"商户代码", "message":"密文体","resp_code":"应答码","resp_desc":"应答描述"}
请求成功:

#

响应报文如下:

#

{
"mchnt_cd" :"商户代码",
"message":"uX7DcjQfDmmu3SiCoANd2sUmYAN8fifC2QFuIilyFgT146h
2NavcKf54pI85suFCUSJbqpjIntMBB4FtZxM0AWT59TjSpAd4S4zC9AFJ
OIXuTyPHh5kMeQgoVNb7awmvc3CjlnDMusaNBiydWwYxo1EGRtHrwuYOkiPD3yxWgC0=",
"resp_code":"0000",
"resp_desc":"成功"
}
请求失败:

#

响应报文如下: {"mchntcd" :"商户代码,”message”:"","resp_code":"5019","resp_desc":"商户代码为空或格式错误"}

results matching ""

    No results matching ""