Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

添加微信支付实名验证接口#3814

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
Copilot wants to merge4 commits intodevelop
base:develop
Choose a base branch
Loading
fromcopilot/add-wechat-payment-validation-api

Conversation

Copy link
Contributor

CopilotAI commentedDec 19, 2025
edited
Loading

根据官方文档https://pay.wechatpay.cn/doc/v2/merchant/4011987607 添加实名验证相关接口,用于查询用户实名认证状态。

新增组件

  • Bean类:RealNameRequest /RealNameResult - 请求响应对象,包含认证状态、认证信息和引导链接
  • 服务接口:RealNameService - 查询用户实名认证状态
  • 服务实现:RealNameServiceImpl - 调用/userinfo/realnameauth/query 接口,需要商户证书
  • 文档:REAL_NAME_USAGE.md - 完整使用说明

集成方式

WxPayService 中添加getRealNameService() 方法,在BaseWxPayServiceImpl 中自动初始化服务实例。

使用示例

// 简化调用RealNameResultresult =wxPayService.getRealNameService()    .queryRealName("oUpF8uMuAJO_M2pxb1Q9zNjWeS6o");if ("Y".equals(result.getIsCertified())) {// 已实名,可获取加密的认证信息StringcertInfo =result.getCertInfo();}else {// 未实名,引导用户完成认证StringguideUrl =result.getGuideUrl();}

返回字段说明:

  • is_certified: 认证状态 (Y/N)
  • cert_info: 实名信息(加密,仅已认证时返回)
  • guide_url: 认证引导链接(仅未认证时返回)

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • pay.wechatpay.cn
    • Triggering command:/usr/bin/curl curl -s REDACTED (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>添加微信支付的实名验证相关的接口</issue_title>
<issue_description>### 简要描述
微信支付的实名验证相关的接口没有找到,是否能添加?

官方文档地址

请提供所需功能对应的微信官方文档地址以便进行确认。
https://pay.wechatpay.cn/doc/v2/merchant/4011987607</issue_description>

Comments on the Issue (you are@copilot in this section)

Custom agent used: 全部用中文
需要用中文,包括PR标题和分析总结过程


💬 We'd love your input! Share your thoughts on Copilot coding agent in our2 minute survey.

CopilotAIand others added3 commitsDecember 19, 2025 17:26
Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
CopilotAI changed the title[WIP] Add WeChat payment real-name validation API添加微信支付实名验证接口Dec 19, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@binarywangbinarywangAwaiting requested review from binarywang

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

添加微信支付的实名验证相关的接口

2 participants

@binarywang

[8]ページ先頭

©2009-2025 Movatter.jp