master
wangning 7 years ago
parent e9b9f16909
commit 0e65780bbe

@ -315,7 +315,7 @@ public class TestController implements ApplicationEventPublisherAware {
res.put("xml", xml); res.put("xml", xml);
break; break;
case "Alipay": case "Alipay":
elem = alipayClient.retailRefund(type, refundOrder.getBigDecimal("refund_exchange_rate"), refundOrder); elem = alipayClient.retailRefund(type, refundOrder.getBigDecimal("refund_exchange_rate"), refundOrder,AlipayEnvironment.getEnv().getAlipayRetailMerchant().getPid());
String xmlStr = XmlFormatUtils.formatXml(elem); String xmlStr = XmlFormatUtils.formatXml(elem);
res.put("xml", xmlStr); res.put("xml", xmlStr);
break; break;
@ -330,7 +330,7 @@ public class TestController implements ApplicationEventPublisherAware {
res.put("xml", xmlStr); res.put("xml", xmlStr);
break; break;
case "AlipayOnline": case "AlipayOnline":
elem = alipayClient.onlineRefund(refundOrder, type == TradeType.GATEWAY_H5); elem = alipayClient.onlineRefund(refundOrder,AlipayEnvironment.getEnv().getAlipayOnlineMerchant().getPid(), type == TradeType.GATEWAY_H5);
xmlStr = XmlFormatUtils.formatXml(elem); xmlStr = XmlFormatUtils.formatXml(elem);
res.put("xml", xmlStr); res.put("xml", xmlStr);
break; break;

Loading…
Cancel
Save