WeChat JAVA SDK is a JAVA implementation of the interface service of the WeChat platform (public platform, open platform, merchant platform, service provider platform). It is developed in strict accordance with the official technical documents, reasonably divides package names, defines fields and methods, and is capable of any WeChat-related business.
==============
First check the official documentation to understand the interaction logic, and then check the example below.
==============
weixin-popular Supported WeChat platforms
Public platform (subscription account, service account, mini program)
Open platform (web application, mobile application, public account third-party platform development)
Merchant Platform (Payment)
Service provider platform (on behalf of payment)
<dependency> <groupId>com.github.liyiorg</groupId> <artifactId>weixin-popular</artifactId> <version>2.8.32</version> </dependency>
Upgrade Notes
TokenAPI access_token get
MediaAPI multimedia upload and download (temporary material)
MaterialAPI permanent material
MenuAPI menu, personalized menu
MessageAPI information sending (customer service messages, group messages, template messages)
PayMchAPI pays for orders, red envelopes, corporate payments, entrusted withholding, withheld fees (merchant platform version), and split accounts
QrcodeAPI QR code
SnsAPI online signature authorization
UserAPI user management, grouping, tags, blacklist
ShorturlAPI long link to short link
TicketAPI JSAPI ticket
ComponentAPI third-party platform development
IpAPI gets the WeChat server IP address
ClearQuotaAPI interface call frequency clears
PoiAPI WeChat store @Moyq5 (contribution)
CardAPI WeChat Card Coupon @Moyq5 (contribution)
ShakearoundAPI WeChat shake around @Moyq5 (contribution)
DatacubeAPI data statistics @Moyq5 (contribution)
CustomserviceAPI customer service function @ConciseA (contribution)
WxaAPI WeChat applet
WxopenAPI WeChat applet
CommentAPI article comment message
OpenAPI WeChat open platform account management
BizwifiAPI WeChat connects to WiFi
ScanAPI WeChat scan
SemanticAPI WeChat Intelligence
MerchantAPI WeChat Store
DeviceAPI device functions
call mode
API usage
Page usage
EmojiUtil
Added logging after version 2.7.0+
API logging, info level.
The log is based on slf4j, please choose to depend on the appropriate slf4j implementation package.
PayUtil payment tool class, generates JS payment, native payment
SignatureUtil signature generation and verification
XMLConverUtil XML object conversion (JAXB)
JsUtil JsAPI config,chooseWXPay JSON generation
WxaUtil applet user information decryption and verification
Message event reception
Message event reception (encrypted)
WeChat Pay
WeChat refund
TokenManager token automatically refreshes
TicketManager ticket automatically refreshes
Set API HttpClient request pool size
Set API HttpClient timeout and exception retry
Set API MCH KeyStore
Exclude duplicate asynchronous notifications
WeChat public platform developer documentation
WeChat Merchant Service Center
WeChat Pay Merchant Platform Developer Documentation
WeChat Pay H5
WeChat payment withholding fee
WeChat Payment Service Provider Platform Developer Documentation
WeChat payment single product discount
WeChat open platform (public account third-party platform development)
WeChat applet development documentation