public class WeChatPayFunctions extends FunctionRule
| 限定符和类型 | 字段和说明 |
|---|---|
protected static WechatPayCoreConfig |
payconfig |
log| 构造器和说明 |
|---|
WeChatPayFunctions() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected static boolean |
checkMap(Map<String,String> doXMLParse) |
protected static RefundReturnModel |
createRefundRequest(RefundModel model)
发起退款申请
|
protected static String |
createSign(SortedMap<String,String> sortMap)
生成签名
|
protected static Map<String,String> |
createUnifiedOrder(BaseWeChatPayModel model)
统一下单接口 用于生成 预支付id 及二维码id
|
static Map<String,String> |
createWithdrawXml(WithdrawModel model)
发起微信转账(提现)
|
static void |
main(String[] args) |
static NotifyModel |
parseNotify(javax.servlet.http.HttpServletRequest req)
微信支付回调解析
|
protected static final WechatPayCoreConfig payconfig
public static Map<String,String> createWithdrawXml(WithdrawModel model) throws MutilsErrorException
model - 发起提现的包装类MutilsErrorExceptionprotected static RefundReturnModel createRefundRequest(RefundModel model) throws MutilsErrorException
model - MutilsErrorExceptionprotected static Map<String,String> createUnifiedOrder(BaseWeChatPayModel model) throws org.apache.http.ParseException, IOException, MutilsErrorException, org.jdom.JDOMException
model - 预下单的对象org.apache.http.ParseExceptionMutilsErrorExceptionIOExceptionorg.jdom.JDOMExceptionprotected static boolean checkMap(Map<String,String> doXMLParse) throws MutilsErrorException
protected static String createSign(SortedMap<String,String> sortMap)
sortMap - public static NotifyModel parseNotify(javax.servlet.http.HttpServletRequest req) throws MutilsErrorException
req - MutilsErrorExceptionpublic static void main(String[] args)
Copyright © 2019. All rights reserved.