public static MicropayResult payMicropay(Micropay micropay,String key){
		Map<String,String> map = MapUtil.objectToMap(micropay);
		//@since 2.8.14 detail 字段签名处理
		if(micropay.getDetail() != null){
			map.put("detail",JsonUtil.toJSONString(micropay.getDetail()));
		}
		String sign = SignatureUtil.generateSign(map,micropay.getSign_type(),key);
		micropay.setSign(sign);
		String closeorderXML = XMLConverUtil.convertToXML(micropay);
		HttpUriRequest httpUriRequest = RequestBuilder.post()
				.setHeader(xmlHeader)
				.setUri(baseURI()+ "/pay/micropay")
				.setEntity(new StringEntity(closeorderXML,Charset.forName("utf-8")))
				.build();
		return LocalHttpClient.executeXmlResult(httpUriRequest,MicropayResult.class,micropay.getSign_type(),key);
	}
public static MicropayResult payMicropay ( Micropay micropay , String key ) { Map < String , String > map = MapUtil . objectToMap ( micropay ) ; if ( micropay . getDetail ( ) != null ) { map . put ( "detail" , JsonUtil . toJSONString ( micropay . getDetail ( ) ) ) ; } String sign = SignatureUtil . generateSign ( map , micropay . getSign_type ( ) , key ) ; micropay . setSign ( sign ) ; String closeorderXML = XMLConverUtil . convertToXML ( micropay ) ; HttpUriRequest httpUriRequest = RequestBuilder . post ( ) . setHeader ( xmlHeader ) . setUri ( baseURI ( ) + "/pay/micropay" ) . setEntity ( new StringEntity ( closeorderXML , Charset . forName ( "utf-8" ) ) ) . build ( ) ; return LocalHttpClient . executeXmlResult ( httpUriRequest , MicropayResult . class , micropay . getSign_type ( ) , key ) ; }
刷卡支付  提交被扫支付API
@param micropay micropay
@param key key
@return MicropayResult