use of me.chanjar.weixin.mp.bean.result.WxMpPayCallback in project weixin-java-tools by chanjarster.
the class WxMpServiceImpl method getJSSDKCallbackData.
@Override
public WxMpPayCallback getJSSDKCallbackData(String xmlData) {
try {
XStream xstream = XStreamInitializer.getInstance();
xstream.alias("xml", WxMpPayCallback.class);
WxMpPayCallback wxMpCallback = (WxMpPayCallback) xstream.fromXML(xmlData);
return wxMpCallback;
} catch (Exception e) {
e.printStackTrace();
}
return new WxMpPayCallback();
}
Aggregations