文档中心 > 当面付-英文版

Response Parameters in Synchronous Return

更新时间:2016/04/13 访问次数:3280

The Result of “Success” Return

Parameter Type Mandatory Description Sample
out_trade_no String(64) Y The unique order id passed by the merchant. 6823789339978248
qr_code String Y The URL for QR code of this request. The merchant can use it to generate the matching QR code. https://qr.alipay.com/bavh4wjlxf12tper3a|
code String(64) Y The return code if the transaction is successful. 10000 for success, 40004 for failure.

Sample response:

{
  "alipay_trade_precreate_response": {
    "code": "10000",
    "msg": "处理成功",
    "out_trade_no": "6823789339978248",
"qr_code": "https://qr.alipay.com/bavh4wjlxf12tper3a" 
},
"sign": "jfAz0Yi0OUvAPqYTzA0DLysx0ri++yf7o/lkHOHaG1Zy2fHBf3j4WM+sJWHZUuyInt6V+wn+6IP9AmwRTKi+GGdWjPrsfBjXqR7H5aBnLhMsAltV7v4cYjhuguAqh4WkaJO6v6CfdybDpzHlxE6Thoucnad+OsjdCXkNd1g3UuU="
}

The Result of “Failed” Return

Sample response:

{
  "alipay_trade_precreate_response": {
    "code": "40004",
    "msg": "处理失败",
    "sub_code": "ACQ.TRADE_BUYER_NOT_MATCH",
    "sub_msg": "交易买家不匹配"
  },
  "sign": "jfAz0Yi0OUvAPqYTzA0DLysx0ri++yf7o/lkHOHaG1Zy2fHBf3j4WM+sJWHZUuyInt6V+wn+6IP9AmwRTKi+GGdWjPrsfBjXqR7H5aBnLhMsAltV7v4cYjhuguAqh4WkaJO6v6CfdybDpzHlxE6Thoucnad+OsjdCXkNd1g3UuU="
}

FAQ

关于此文档暂时还没有FAQ
返回
顶部