- oauth2_access_token - 接口 中的静态变量org.thlws.payment.wechat.api.WechatApi
-
获取微信token[非普通token],使用code得到oauth2方式的 access_token,据此获取用户信息,openId,userInfo etc...
- oauth2_refresh_token - 接口 中的静态变量org.thlws.payment.wechat.api.WechatApi
-
刷新token[非普通token]
- OauthTokenOutput - org.thlws.payment.wechat.entity.output中的类
-
Oauth access_token refresh_token Response POJO
此为Oauth方式得Token,非普通方式token
- OauthTokenOutput() - 类 的构造器org.thlws.payment.wechat.entity.output.OauthTokenOutput
-
Instantiates a new Oauth token output.
- ObjectToMap(Object) - 类 中的静态方法org.thlws.payment.wechat.utils.ThlwsBeanUtil
-
Object to Map (will ignore null properties)
- obtainAccessToken(String, String) - 类 中的静态方法org.thlws.payment.wechat.portal.official.WechatOfficial
-
access_token是公众号的全局唯一接口调用凭据,公众号调用各接口时都需使用access_token。
- obtainJsApiTicket(String) - 类 中的静态方法org.thlws.payment.wechat.portal.official.WechatOfficial
-
获取jsapi_ticket,jsapi_ticket是公众号用于调用微信JS接口的临时票据。
- obtainJsApiTicket(String, String) - 类 中的静态方法org.thlws.payment.wechat.portal.official.WechatOfficial
-
功能同上,但不建议使用,token需要中控服务器维护
- obtainOauthAccessToken(Map<String, Object>) - 类 中的静态方法org.thlws.payment.wechat.portal.official.WechatOfficial
-
通过code换取网页授权access_token
access_token是调用授权关系接口的调用凭证,有效期为2个小时,频率限制:1万/分钟
- obtainTemplateId(String, String) - 类 中的静态方法org.thlws.payment.wechat.portal.official.WechatOfficial
-
获取微信消息模板ID{根据微信template_id_short得到,实际动作是调用API往 ‘我的模板’ 中添加了模板}
- obtainUserInfo(Map<String, Object>) - 类 中的静态方法org.thlws.payment.wechat.portal.official.WechatOfficial
-
获取微信用户个人信息
所需参数:access_token、openid、lang[非必须]
lang 国家地区语言版本,zh_CN 简体,zh_TW 繁体,en 英语,默认为zh-CN
频率限制:5万/分钟
- orderQuery(OrderQueryInput, String) - 类 中的静态方法org.thlws.payment.wechat.core.WechatCore
-
微信订单查询,除核心参数外(appid,mch_id等为核心参数)业务参数 transaction_id ,out_trade_no 二选一即可
需要调用查询接口的情况
当商户后台、网络、服务器等出现异常,商户系统最终未接收到支付通知;
调用支付接口后,返回系统错误或未知交易状态情况;
调用刷卡支付API,返回USERPAYING的状态;
调用关单或撤销接口API之前,需确认支付状态;
- orderQuery(OrderQueryInput, String) - 类 中的静态方法org.thlws.payment.wechat.portal.client.WechatClient
-
Order query order query output.
- OrderQueryInput - org.thlws.payment.wechat.entity.input中的类
-
微信订单查询对象
- OrderQueryInput() - 类 的构造器org.thlws.payment.wechat.entity.input.OrderQueryInput
-
Instantiates a new Order query input.
- OrderQueryOutput - org.thlws.payment.wechat.entity.output中的类
-
微信订单查询结果对象
- OrderQueryOutput() - 类 的构造器org.thlws.payment.wechat.entity.output.OrderQueryOutput
-
Instantiates a new Order query output.
- org.thlws.payment.wechat - 程序包 org.thlws.payment.wechat
-
存在意义
统一整合微信线上线下支付,提供微信支付工具包,降低新项目串接微信支付难度,目前支持微信公众号支、刷卡支付、扫描支付.
- org.thlws.payment.wechat.api - 程序包 org.thlws.payment.wechat.api
-
- org.thlws.payment.wechat.config - 程序包 org.thlws.payment.wechat.config
-
- org.thlws.payment.wechat.core - 程序包 org.thlws.payment.wechat.core
-
- org.thlws.payment.wechat.entity.extra - 程序包 org.thlws.payment.wechat.entity.extra
-
- org.thlws.payment.wechat.entity.input - 程序包 org.thlws.payment.wechat.entity.input
-
- org.thlws.payment.wechat.entity.output - 程序包 org.thlws.payment.wechat.entity.output
-
- org.thlws.payment.wechat.extra.xml - 程序包 org.thlws.payment.wechat.extra.xml
-
- org.thlws.payment.wechat.portal - 程序包 org.thlws.payment.wechat.portal
-
Created by HanleyTang on 16/9/4.
- org.thlws.payment.wechat.portal.client - 程序包 org.thlws.payment.wechat.portal.client
-
- org.thlws.payment.wechat.portal.official - 程序包 org.thlws.payment.wechat.portal.official
-
- org.thlws.payment.wechat.utils - 程序包 org.thlws.payment.wechat.utils
-