public class WeChatPayFunctions extends FunctionRule
log, slog| 构造器和说明 |
|---|
WeChatPayFunctions() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Map<String,String> |
createAppPayParamter(BaseWeChatPayModel model) |
static Map<String,Object> |
createInitJSConfig(String url)
生成微信JS相关初始化config配置
|
static Map<String,String> |
createJSAPIPayParamter(BaseWeChatPayModel model)
生成微信支付js需要的提交参数
|
static Map<String,String> |
createMiniProgramPayParamter(BaseWeChatPayModel model)
小程序支付
|
static String |
createRefundXml(String transaction_id,
String out_refund_no,
int total_fee,
int refund_fee)
发起微信退款申请
|
static String |
createWithdrawXml(String out_refund_no,
BigDecimal amount,
String openId,
String re_user_name)
发起微信提现申请
|
static Map<String,String> |
getRefundMap(String url,
String xmlParam)
发起微信退款
|
static Map<String,String> |
unifiedOrder(BaseWeChatPayModel model)
统一下单接口 用于生成 预支付id 及二维码id
|
public static Map<String,String> createJSAPIPayParamter(BaseWeChatPayModel model) throws MutilsErrorException
doXMLParse - MutilsErrorExceptionpublic static Map<String,String> createMiniProgramPayParamter(BaseWeChatPayModel model) throws MutilsErrorException
doXMLParse - MutilsErrorExceptionpublic static Map<String,String> createAppPayParamter(BaseWeChatPayModel model) throws MutilsErrorException
public static Map<String,Object> createInitJSConfig(String url) throws MutilsErrorException
url - MutilsErrorExceptionpublic static String createRefundXml(String transaction_id, String out_refund_no, int total_fee, int refund_fee) throws MutilsErrorException
transaction_id - 微信支付idout_refund_no - 退款单号total_fee - 订单总金额refund_fee - 退款金额MutilsErrorExceptionpublic static String createWithdrawXml(String out_refund_no, BigDecimal amount, String openId, String re_user_name) throws MutilsErrorException
transaction_id - 微信支付idout_refund_no - 退款单号total_fee - 订单总金额refund_fee - 退款金额MutilsErrorExceptionpublic static Map<String,String> getRefundMap(String url, String xmlParam) throws MutilsErrorException
url - xmlParam - MutilsErrorExceptionpublic static Map<String,String> unifiedOrder(BaseWeChatPayModel model) throws MutilsErrorException
xmlParam - MutilsErrorExceptionCopyright © 2018. All rights reserved.