# jeffreysu/weixinmpsdk

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/jeffreysu-weixinmpsdk).**

8,871 stars · 4,351 forks · C# · Apache-2.0

## Links

- GitHub: https://github.com/JeffreySu/WeiXinMPSDK
- Homepage: https://weixin.senparc.com
- awesome-repositories: https://awesome-repositories.com/repository/jeffreysu-weixinmpsdk.md

## Topics

`c-sharp` `cache` `distributed-cache` `dotnetcore` `jssdk` `memcached` `net-core` `net10` `net8` `netcore` `nuget` `officialaccounts` `redis` `sdk` `senparc` `tenpay` `wechat` `wechat-sdk` `weixin` `weixin-sdk`

## Description

WeiXinMPSDK is a .NET software development kit designed to integrate WeChat services, official accounts, and mini programs into applications. It provides a multi-platform bot framework and a programmatic interface to interact with official, mini, and corporate accounts across the WeChat ecosystem.

The project features interface-based platform abstraction and logic unification, allowing a single codebase to target multiple target platforms. It includes a messaging middleware for routing incoming requests and a distributed caching layer using providers like Redis or Memcached to synchronize session data and tokens across server instances.

The SDK covers a broad range of capabilities, including OAuth 2.0 user authentication, the management of media assets, and the creation of custom navigation menus. It also implements comprehensive payment integration for processing native, web, and in-app transactions, along with refund management and notification verification.

The framework handles low-level platform requirements such as automatic access token lifecycle management, XML request parsing, and signature-based request verification.

## Tags

### Mobile Development

- [WeChat Ecosystem SDKs](https://awesome-repositories.com/f/mobile-development/wechat-ecosystem-sdks.md) — Provides a comprehensive .NET SDK for integrating backend services across the diverse WeChat platform ecosystem. ([source](https://weixin.senparc.com))
- [Mini Program Development](https://awesome-repositories.com/f/mobile-development/mini-program-development.md) — Implements backend logic and bidirectional communication for small applications within the WeChat ecosystem. ([source](https://book.weixin.senparc.com/))
- [Mini Program Messaging](https://awesome-repositories.com/f/mobile-development/mini-program-development/mini-program-messaging.md) — Provides integration for handling messaging and template notifications specifically for small-app environments. ([source](http://book.weixin.senparc.com/))
- [Operational APIs](https://awesome-repositories.com/f/mobile-development/mini-program-development/operational-apis.md) — Provides access to operational APIs required for the development and maintenance of mini-program environments. ([source](https://sdk.weixin.senparc.com/))

### Networking & Communication

- [WeChat Platform Integrations](https://awesome-repositories.com/f/networking-communication/social-media-messaging-integrations/wechat-platform-integrations.md) — Provides a complete .NET SDK for integrating with WeChat official accounts, mini programs, and corporate services.
- [Messaging Middleware](https://awesome-repositories.com/f/networking-communication/communication-platforms-services/communication-platforms/messaging-middleware.md) — Implements a messaging middleware layer for routing and processing incoming requests within a web runtime. ([source](https://sdk.weixin.senparc.com/))
- [Message Routing](https://awesome-repositories.com/f/networking-communication/message-routing.md) — Processes incoming chat messages and events by routing them through middleware to specific handler methods. ([source](https://sdk.weixin.senparc.com/Docs/MP/))
- [Messaging Bot Frameworks](https://awesome-repositories.com/f/networking-communication/messaging-bot-frameworks.md) — Provides a comprehensive middleware framework for routing and handling messages across different WeChat account types.
- [Programmatic API Interfaces](https://awesome-repositories.com/f/networking-communication/programmatic-api-interfaces.md) — Provides a programmatic interface for unified interaction across official, mini, and corporate account types. ([source](https://sdk.weixin.senparc.com/Document))
- [WeChat Message Processing](https://awesome-repositories.com/f/networking-communication/wechat-message-processing.md) — Provides a framework for processing server push notifications and user messages via customizable handlers. ([source](https://cdn.jsdelivr.net/gh/jeffreysu/weixinmpsdk@master/README.md))
- [Service Abstractions](https://awesome-repositories.com/f/networking-communication/http-request-abstractions/service-abstractions.md) — Abstracts platform-specific logic into standard interfaces to serve multiple services with one codebase. ([source](https://sdk.weixin.senparc.com/))
- [Platform Ecosystem Integrations](https://awesome-repositories.com/f/networking-communication/platform-ecosystem-integrations.md) — Connects to open APIs for managing third-party application interactions and messages. ([source](https://github.com/JeffreySu/WeiXinMPSDK/wiki/%E4%BD%BF%E7%94%A8-Nuget-%E5%B0%86-SDK-%E5%AE%89%E8%A3%85%E5%88%B0%E9%A1%B9%E7%9B%AE%E4%B8%AD))

### Business & Productivity Software

- [Corporate Communication Platforms](https://awesome-repositories.com/f/business-productivity-software/corporate-communication-platforms.md) — Provides an SDK for integrating backend services with WeChat corporate communication and organizational workflow platforms. ([source](https://github.com/JeffreySu/WeiXinMPSDK/wiki/%E4%BD%BF%E7%94%A8-Nuget-%E5%B0%86-SDK-%E5%AE%89%E8%A3%85%E5%88%B0%E9%A1%B9%E7%9B%AE%E4%B8%AD))
- [Payment Integrations](https://awesome-repositories.com/f/business-productivity-software/payment-integrations.md) — Provides an integration layer for managing financial transactions via versioned platform APIs. ([source](https://weixin.senparc.com))
- [WeChat Pay Integrations](https://awesome-repositories.com/f/business-productivity-software/payment-integrations/wechat-pay-integrations.md) — Provides comprehensive processing for in-app, web, and native payments including refunds.
- [Payment Processing](https://awesome-repositories.com/f/business-productivity-software/payment-processing.md) — Integrates payment processing for direct purchase of goods and services within digital interfaces. ([source](https://sdk.weixin.senparc.com/Docs/TenPayV2/))
- [QR Code Payment Triggers](https://awesome-repositories.com/f/business-productivity-software/online-payment-processing/qr-code-payment-triggers.md) — Generates scannable QR codes that trigger native payment processes on mobile devices. ([source](https://sdk.weixin.senparc.com/Docs/TenPayV3/))
- [Payment Notifications](https://awesome-repositories.com/f/business-productivity-software/payment-notifications.md) — Verifies asynchronous server notifications from payment providers to confirm successful transactions. ([source](https://sdk.weixin.senparc.com/Docs/TenPayV3/))
- [Refund Processing Engines](https://awesome-repositories.com/f/business-productivity-software/refund-processing-engines.md) — Provides an interface for initiating and tracking the return of funds for specific orders. ([source](https://sdk.weixin.senparc.com/Docs/TenPayV3/))
- [Refund Status Notifications](https://awesome-repositories.com/f/business-productivity-software/refund-processing-engines/refund-status-notifications.md) — Verifies asynchronous updates from payment providers to track the status of refund transactions. ([source](https://sdk.weixin.senparc.com/Docs/TenPayV3/))
- [Third-Party Application Authorizations](https://awesome-repositories.com/f/business-productivity-software/third-party-application-authorizations.md) — Manages third-party authorizations and implements business logic on behalf of external applications. ([source](https://sdk.weixin.senparc.com/))

### Operating Systems & Systems Programming

- [Automated Token Lifecycles](https://awesome-repositories.com/f/operating-systems-systems-programming/platform-api-access/automated-token-lifecycles.md) — Executes administrative requests using combined identity keys to automate the access token lifecycle. ([source](https://sdk.weixin.senparc.com/Docs/MP/))

### Security & Cryptography

- [Access Token Management](https://awesome-repositories.com/f/security-cryptography/access-token-management.md) — Manages the retrieval and renewal of access tokens using application identifiers for continuous service access. ([source](https://sdk.weixin.senparc.com/Docs/WxOpen/))
- [Automatic Token Refreshes](https://awesome-repositories.com/f/security-cryptography/account-management/account-synchronization/credential-refreshers/oauth-token-refreshes/automatic-token-refreshes.md) — Automatically refreshes expired authentication tokens using application secrets to ensure uninterrupted communication.
- [Request Signature Verification](https://awesome-repositories.com/f/security-cryptography/authentication-and-authorization/request-signature-verification.md) — Validates the authenticity of incoming platform notifications by comparing request signatures against shared secrets.
- [Authentication Flows](https://awesome-repositories.com/f/security-cryptography/authentication-flows.md) — Provides utilities for generating request URLs and processing callbacks to coordinate secure authorization flows. ([source](https://sdk.weixin.senparc.com/Docs/MP/))
- [OAuth 2.0 Authorization Flows](https://awesome-repositories.com/f/security-cryptography/oauth-2-0-authorization-flows.md) — Implements standard OAuth 2.0 authorization flows for secure user identity retrieval and authentication. ([source](https://sdk.weixin.senparc.com/Docs/Work/))
- [OAuth Authentication](https://awesome-repositories.com/f/security-cryptography/oauth-authentication.md) — Implements secure user login and profile authorization flows using the platform identity protocol.
- [OAuth Flow Implementations](https://awesome-repositories.com/f/security-cryptography/oauth-authentication/oauth-token-retrievals/oauth-flow-implementations.md) — Implements a full OAuth 2.0 client for authenticating users and managing access tokens within the WeChat platform.

### Software Engineering & Architecture

- [Official Account Management](https://awesome-repositories.com/f/software-engineering-architecture/component-lifecycle-management/component-detail-retrievers/content-detail-retrievers/wechat-account-detail-retrievers/official-account-management.md) — Implements communication interfaces and messaging capabilities for official brand accounts. ([source](https://sdk.weixin.senparc.com/))
- [Cross-Platform Abstractions](https://awesome-repositories.com/f/software-engineering-architecture/cross-platform-abstractions.md) — Standardizes diverse API ecosystems into common interfaces to allow a single codebase to target multiple platforms.
- [Type-Based Message Routing](https://awesome-repositories.com/f/software-engineering-architecture/type-based-message-routing.md) — Implements a dispatch system that routes incoming requests to specific handlers based on the message type. ([source](https://github.com/JeffreySu/WeiXinMPSDK/wiki/%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8MessageHandler%E7%AE%80%E5%8C%96%E6%B6%88%E6%81%AF%E5%A4%84%E7%90%86%E6%B5%81%E7%A8%8B))
- [Ecosystem Logic Unification](https://awesome-repositories.com/f/software-engineering-architecture/ios-development-standards/multi-platform-standards/ecosystem-logic-unification.md) — Standardizes code across different platform ecosystems to allow a single codebase to target multiple account types. ([source](http://sdk.weixin.senparc.com/))

### Web Development

- [Platform Request Execution](https://awesome-repositories.com/f/web-development/api-request-configurations/cloud-api-request-execution/platform-request-execution.md) — Executes requests for payment, menu, and template modules with automated access token lifecycle management. ([source](https://cdn.jsdelivr.net/gh/jeffreysu/weixinmpsdk@master/README.md))
- [Pluggable Cache Backends](https://awesome-repositories.com/f/web-development/content-caching-accelerators/object-caches/pluggable-cache-backends.md) — Synchronizes session data and tokens across multiple server instances using Redis or Memcached providers.
- [Real-Time Communication](https://awesome-repositories.com/f/web-development/real-time-communication.md) — Implements WebSocket support for real-time bidirectional data exchange between servers and clients. ([source](https://sdk.weixin.senparc.com/))
- [Third-Party Platform Authorizations](https://awesome-repositories.com/f/web-development/third-party-integrations/third-party-platform-authorizations.md) — Manages third-party application authorizations and business logic for external applications.

### Part of an Awesome List

- [Payment Integration](https://awesome-repositories.com/f/awesome-lists/data/payment-integration.md) — Integrates payment flows into web pages using JSAPI for product purchases. ([source](https://sdk.weixin.senparc.com/Docs/TenPayV3/))

### Data & Databases

- [Distributed Session Caching](https://awesome-repositories.com/f/data-databases/distributed-state-synchronizers/distributed-session-caching.md) — Synchronizes session data and tokens across multiple server instances using Redis or Memcached.

### DevOps & Infrastructure

- [Distributed Locks](https://awesome-repositories.com/f/devops-infrastructure/distributed-locks.md) — Prevents race conditions during concurrent API operations by managing resource locks across distributed clusters.

### Graphics & Multimedia

- [Payment QR Codes](https://awesome-repositories.com/f/graphics-multimedia/qr-code-generators/payment-qr-codes.md) — Provides a utility for creating scannable QR codes that initiate payment requests on mobile devices. ([source](https://sdk.weixin.senparc.com/Docs/TenPayV2/))

### User Interface & Experience

- [Custom Navigation Menus](https://awesome-repositories.com/f/user-interface-experience/custom-navigation-menus.md) — Provides utilities for building personalized navigation menus based on user attributes like group, gender, and location. ([source](https://sdk.weixin.senparc.com/Menu))
- [Menu Integration APIs](https://awesome-repositories.com/f/user-interface-experience/menu-integration-apis.md) — Includes interfaces for programmatically configuring interactive menu items via API calls and message handlers. ([source](https://sdk.weixin.senparc.com/Docs/Work/))
- [Server-Fetched Menu Structures](https://awesome-repositories.com/f/user-interface-experience/menu-integration-apis/server-fetched-menu-structures.md) — Provides utilities for updating interactive menu structures from a server, enabling runtime updates without redeployment. ([source](https://sdk.weixin.senparc.com/Docs/MP/))
- [Navigation Menu Management](https://awesome-repositories.com/f/user-interface-experience/navigation-menu-management.md) — Implements tools for creating and updating custom navigation menus displayed within the application interface. ([source](https://book.weixin.senparc.com/))
