Skip to content

接入指引

  1. 申请APPID

  2. 申请mchid(商户号)

  3. API v3密钥

  4. 商户证书

  5. 微信平台证书

  6. 支付文档

商户和微信平台进行通信,所以双方都需要有一套证书

SDK

Java: https://github.com/wechatpay-apiv3/wechatpay-apache-httpclient

xml
<dependency>
    <groupId>com.github.wechatpay-apiv3</groupId>
    <artifactId>wechatpay-apache-httpclient</artifactId>
    <version>0.4.7</version>
</dependency>

PHP:https://github.com/wechatpay-apiv3/wechatpay-php

  • Guzzle 7.0,PHP >= 7.2.5
  • Guzzle 6.5,PHP >= 7.1.2
bash
composer require wechatpay/wechatpay