# WechatPay-API-v3

## WechatPay-API-v3

- [简介](https://wechatpay-api.gitbook.io/wechatpay-api-v3/master.md)
- [接口规则](https://wechatpay-api.gitbook.io/wechatpay-api-v3/wei-xin-zhi-fu-api-v3-jie-kou-gui-fan.md): 微信支付API v3是遵循RESTful风格设计的HTTP API。
- [认证](https://wechatpay-api.gitbook.io/wechatpay-api-v3/ren-zheng.md)
- [私钥和证书](https://wechatpay-api.gitbook.io/wechatpay-api-v3/ren-zheng/zheng-shu.md): 介绍商户API私钥、证书和微信支付平台证书的获取和使用方式
- [API v3密钥](https://wechatpay-api.gitbook.io/wechatpay-api-v3/ren-zheng/api-v3-mi-yao.md)
- [签名](https://wechatpay-api.gitbook.io/wechatpay-api-v3/ren-zheng/qian-ming-he-zheng-shu.md): 微信支付API v3通过验证签名来保证请求的真实性和数据的完整性。
- [开发指南](https://wechatpay-api.gitbook.io/wechatpay-api-v3/qian-ming-zhi-nan-1.md)
- [签名生成](https://wechatpay-api.gitbook.io/wechatpay-api-v3/qian-ming-zhi-nan-1/qian-ming-sheng-cheng.md): 商户可以按照下述步骤生成请求的签名。在本节的最后，我们准备了多种常用编程语言的演示代码供开发者参考。
- [签名验证](https://wechatpay-api.gitbook.io/wechatpay-api-v3/qian-ming-zhi-nan-1/qian-ming-yan-zheng.md): 商户可以按照下述步骤验证应答或者回调的签名。
- [证书和回调报文解密](https://wechatpay-api.gitbook.io/wechatpay-api-v3/qian-ming-zhi-nan-1/zheng-shu-he-hui-tiao-bao-wen-jie-mi.md): 为了保证安全性，微信支付在回调通知和平台证书下载接口中，对关键信息进行了AES-256-GCM加密。本章节详细介绍了加密报文的格式，以及如何进行解密。
- [敏感信息加解密](https://wechatpay-api.gitbook.io/wechatpay-api-v3/qian-ming-zhi-nan-1/min-gan-xin-xi-jia-mi.md): 为了保证通信过程中敏感信息字段（如用户的住址、银行卡号、手机号码等）的机密性，微信支付API v3要求商户对上送的敏感信息字段进行加密。与之相对应，微信支付会对下行的敏感信息字段进行加密，商户需解密后方能得到原文。下面详细介绍加解密的方式，以及如何进行相应的计算。
- [平台证书更新指引](https://wechatpay-api.gitbook.io/wechatpay-api-v3/qian-ming-zhi-nan-1/wei-xin-zhi-fu-ping-tai-zheng-shu-geng-xin-zhi-yin.md): 从2018年6月起，微信支付开始在微信支付分、营销代金券等API，使用权威CA颁发的平台证书标识微信支付的身份信息。出于合规和安全性考虑，权威CA为颁发的平台证书设置了有效期，商户需在证书过期前进行更新操作。本文档详细描述了微信支付平台证书更换的机制，以及提供实现建议。
- [开发工具](https://wechatpay-api.gitbook.io/wechatpay-api-v3/kai-fa-gong-ju.md)
- [常见问题](https://wechatpay-api.gitbook.io/wechatpay-api-v3/chang-jian-wen-ti.md)
- [证书相关](https://wechatpay-api.gitbook.io/wechatpay-api-v3/chang-jian-wen-ti/zheng-shu-xiang-guan.md)
- [签名相关](https://wechatpay-api.gitbook.io/wechatpay-api-v3/chang-jian-wen-ti/qian-ming-xiang-guan.md)
- [其他](https://wechatpay-api.gitbook.io/wechatpay-api-v3/chang-jian-wen-ti/api-v3-mi-yao-xiang-guan.md)
- [平台证书](https://wechatpay-api.gitbook.io/wechatpay-api-v3/jie-kou-wen-dang/ping-tai-zheng-shu.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information, you can query the documentation dynamically by asking a question.
Perform an HTTP GET request on a page URL with the `ask` query parameter:
```
GET https://wechatpay-api.gitbook.io/wechatpay-api-v3/master.md?ask=<question>
```
The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.
Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
