API Doc
Version
Version
  • v1
  • v2
Languages
Languages
  • English
  • 简体中文
Version
Version
  • v1
  • v2
Languages
Languages
  • English
  • 简体中文
  1. 3. Payment
  • Unified API Request Param
  • Unified Async Notification Param
  • Open API Common Code List
  • 1. Account
    • Country Code
    • 1.1 Balance Inquiry
      POST
    • 1.2 Report Download
      POST
  • 2. Checkout
    • Checkout Payment Channel Code List
    • 2.1 Create Checkout Order
      POST
    • 2.2 Check Checkout Order status
      POST
    • 2.3 Get Checkout Order Available Channels
      POST
    • 2.4 Close Checkout Order
      POST
    • 2.5 Asynchronous Notification Of Checkout Payment Results
      POST
  • 3. Payment
    • Payment Channel List
    • Wechat Webpage Authorization Reference
    • Wechat Calls Payment Reference
    • 3.1 Create Payment
      POST
    • 3.2 Check Payment Status
      POST
    • 3.3 Close Payment
      POST
    • 3.4 Asynchronous Notification Of Payment Results
      POST
    • 3.5 Payment Void
      POST
  • 4. Payout
    • Payout Channel List
    • 4.1 Create Payout
      POST
    • 4.2 Check Payout Status
      POST
    • 4.3 Asynchronous Notification Of Payout Results
      POST
  • 5. Refund
    • Refund Support Channel List
    • Refund Status Enum
    • 5.1 Refund
      POST
    • 5.2 Get Refund Payments
      POST
    • 5.3 Asynchronous Notification Of Refund Results
      POST
  • 6. Direct Debit
    • Direct Debit Channel List
    • 6.3 Cancel Authorization
    • 6.1 Create Authorization Url
    • 6.2 Check Authorization Status
    • 6.4 Asynchronous Notification Of Authorization Results
  • 7. Split Payment
    • Split Payment Enumeration
    • 1. Relationship Proof File Upload
    • 2. Add Split Payment Receiver
    • 3. Query Split Payment Receiver
    • 4. Delete Split Payment Receiver
    • 5. Query Unsplit Amount
    • 6. Split Payment
    • 7. Query Split Payment Result
    • 8. Split Payment Return
    • 9. Query Split Payment Return Result API
  1. 3. Payment

Wechat Webpage Authorization Reference

Official Account Payment#

Configuring the Webpage Authorization Domain Name#

The WECHAT JSAPI Payment product capability needs to obtain the user's openid in the form of authorization auth2
on the webpage before initiating payment to verify whether the person placing the order and the final payer are the same person.
The domain name used for auth2 authorization needs to be configured on the merchant's wechat official account platform by selecting Settings > Account Info > Function Setting.
The following figure shows the configuration page:
jsapi_webpage_auth_domain_config.png
Attention:
Note that the authorization callback domain should be filled in with a domain name (which is a string) instead of a URL,
so do not add http:// or other protocol headers here.
For example, if a domain name requiring webpage authorization is www.qq.com, you can perform OAuth 2.0 authentication
on the sub-domain pages http://www.qq.com/music.html and http://www.qq.com/login.html after configuration,
but cannot do so on http://pay.qq.com, http://music.qq.com, and http://qq.com.

Getting Openid#

When the scope is snsapi_base, the authorization page does not pop up and you can only get the user's openid;
When the scope is snsapi_userinfo, the authorization page pops up and you can get the user's alias, gender, and location with openid.
Additionally, you can get user information even if they are not following the Official Account, as long as they have granted authorization.
Webpage Authorization Guide of Wechat Official Account

Mini Program Payment#

Binding Appid#

Please contact us to bind appid of mini program.

Getting Openid#

Webpage Authorization Guide of Wechat Mini Program
Previous
Payment Channel List
Next
Wechat Calls Payment Reference
Built with