文档中心 > API类目 > 飞猪商家平台

alitrip.merchant.galaxy.wechat.pay.callback (微信支付回调)

微信支付回调

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
tenant_key String 可选 1 1
call_back_json String 可选 {"aaa":"xxx"} 回调参数

响应参数

名称 类型 示例值 描述
result Response 1
  • └ success
  • Boolean
  • 1
  • 1
  • └ error_code
  • String
  • 1
  • 1
  • └ error_msg
  • String
  • 1
  • 1
  • content
  • WechatCallbackResponse
  • 111
  • 微信要求的返回类
  • └ code
  • String
  • FAIL
  • 错误码,SUCCESS为清算机构接收成功,其他错误码为失败。
  • └ message
  • String
  • 错误
  • 返回信息,如非空,为错误原因。

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripMerchantGalaxyWechatPayCallbackRequest req = new AlitripMerchantGalaxyWechatPayCallbackRequest();
req.setTenantKey("1");
req.setCallBackJson("{\"aaa\":\"xxx\"}");
AlitripMerchantGalaxyWechatPayCallbackResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_merchant_galaxy_wechat_pay_callback_response>
    <result>
        <success>1</success>
        <error_code>1</error_code>
        <error_msg>1</error_msg>
        <content>
            <code>FAIL</code>
            <message>错误</message>
        </content>
    </result>
</alitrip_merchant_galaxy_wechat_pay_callback_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部