This commit is contained in:
jinyu
2016-05-31 18:19:54 +08:00
parent 71c8cb22ae
commit bfecd0f0ae
2 changed files with 3 additions and 2 deletions
@@ -105,6 +105,8 @@ public class PayApi extends MchApi {
throws WeixinException {
String tradeType = payPackage.getTradeType();
if (TradeType.MICROPAY.name().equalsIgnoreCase(tradeType)) {
payPackage.declareWeixinPayAccount(weixinAccount);
payPackage.setSign(weixinSignature.sign(payPackage));
String para = XmlStream.toXML(payPackage);
WeixinResponse response = weixinExecutor.post(
getRequestUri("micropay_uri"), para);