支付宝 交易退款接口 退款接口 调用失败

hellotrms 发布于 2016/05/05 19:14
阅读 1K+
收藏 0

这两天再接触支付宝退款接口,用的接口是:alipay.trade.refund

调用也是支付宝提供的SDK,但一直提示 签名无效。

AlipayClient alipayClient =newDefaultAlipayClient("https://openapi.alipay.com/gateway.do","app_id","your private_key","json","GBK","alipay_public_key");
AlipayTradeRefundRequest request =newAlipayTradeRefundRequest();
request.setBizContent("  {
    "out_trade_no":"20150320010101001",
    "trade_no":"2014112611001004680 073956707",
    "refund_amount":200.12,
    "refund_reason":"正常退款",
    "out_request_no":"HZ01RF001",
    "operator_id":"OP001",
    "store_id":"NJ_S_001",
    "terminal_id":"NJ_T_001"
  }
");
AlipayTradeRefundResponse response = alipayClient.execute(request);
很简单的一个调用,就是不通。

加载中
0
z
zzzjf
请问LZ解决了么,我也遇到这个问题,没头绪
返回顶部
顶部