public class WechatJsapiFunctions extends WeChatPayFunctions
payconfigLOGGER| 构造器和说明 |
|---|
WechatJsapiFunctions() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Map<String,Object> |
createInitJSConfig(String url,
boolean debug,
String... functions)
生成微信JS相关初始化config配置
|
static Map<String,String> |
createJsapiPayParamter(JsapiOrderPayModel model)
创建公众号支付的请求参数 小程序将用其发起微信支付
|
static RefundReturnModel |
createJsapiRefundParamter(JsapiRefundModel model)
发起退款申请
|
static AccessTokenModel |
getAccessToken()
jsapi获取AccessToken用于实现登录
|
checkMap, createRefundRequest, createSign, createUnifiedOrder, createWithdrawXml, parseNotifypublic static RefundReturnModel createJsapiRefundParamter(JsapiRefundModel model) throws MutilsErrorException, org.apache.http.client.ClientProtocolException, org.jdom.JDOMException, IOException
model - MutilsErrorExceptionIOExceptionorg.jdom.JDOMExceptionorg.apache.http.client.ClientProtocolExceptionpublic static Map<String,Object> createInitJSConfig(String url, boolean debug, String... functions) throws org.apache.http.client.ClientProtocolException, IOException
url - 当前网页地址debug - 是否开启调试要使用的功能 - 默认 "openLocation", "getLocation", "chooseWXPay"IOExceptionorg.apache.http.client.ClientProtocolExceptionpublic static AccessTokenModel getAccessToken() throws org.apache.http.client.ClientProtocolException, IOException
IOExceptionorg.apache.http.client.ClientProtocolExceptionpublic static Map<String,String> createJsapiPayParamter(JsapiOrderPayModel model) throws org.apache.http.ParseException, IOException, MutilsErrorException, org.jdom.JDOMException
model - 下单时的包装对象org.jdom.JDOMExceptionIOExceptionorg.apache.http.ParseExceptionMutilsErrorExceptionCopyright © 2019. All rights reserved.