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