public class WeChatPayFunctions extends FunctionRule
log, slog| 构造器和说明 |
|---|
WeChatPayFunctions() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Map<String,String> |
createAppPayParamter(BaseWeChatPayModel model)
创建APP支付的请求参数 APP将用其发起微信支付
|
static Map<String,Object> |
createInitJSConfig(String url)
生成微信JS相关初始化config配置
|
static Map<String,String> |
createJSAPIPayParamter(BaseWeChatPayModel model)
创建公众号支付的请求参数 小程序将用其发起微信支付
|
static Map<String,String> |
createMiniProgramPayParamter(BaseWeChatPayModel model)
创建小程序支付的请求参数 小程序将用其发起微信支付
|
static Map<String,String> |
createRefundRequest(RefundModel model)
发起退款申请
|
static Map<String,String> |
createUnifiedOrder(BaseWeChatPayModel model)
统一下单接口 用于生成 预支付id 及二维码id
|
static String |
createWithdrawXml(WithdrawModel model)
发起微信提现申请
|
public static Map<String,String> createJSAPIPayParamter(BaseWeChatPayModel model) throws MutilsErrorException
model - 下单时的包装对象MutilsErrorExceptionpublic static Map<String,String> createMiniProgramPayParamter(BaseWeChatPayModel model) throws MutilsErrorException
model - 下单时的包装对象MutilsErrorExceptionpublic static Map<String,String> createAppPayParamter(BaseWeChatPayModel model) throws MutilsErrorException
model - 下单时的包装对象MutilsErrorExceptionpublic static Map<String,Object> createInitJSConfig(String url) throws MutilsErrorException
url - MutilsErrorExceptionpublic static String createWithdrawXml(WithdrawModel model) throws MutilsErrorException
transaction_id - 微信支付idout_refund_no - 退款单号total_fee - 订单总金额refund_fee - 退款金额MutilsErrorExceptionpublic static Map<String,String> createRefundRequest(RefundModel model) throws MutilsErrorException
model - MutilsErrorExceptionpublic static Map<String,String> createUnifiedOrder(BaseWeChatPayModel model) throws MutilsErrorException
model - 预下单的对象MutilsErrorExceptionCopyright © 2019. All rights reserved.