Sample Projects and References
This page collects the official sample repositories, third-party protocol docs, and commonly-used SDK links related to Integration Center, for easy reference during integration.
Official Sample Projects (GitHub)
Every integration guide ships with an open-source companion project that includes cloud function source, frontend sample code, and a minimal runnable demo — clone and customize for your own use.
| Integration | Sample Repository |
|---|---|
| WeChat Pay (Mini Program / Official Account H5 / Native PC QR) | awesome-cloudbase-examples/integration/cloudbase-wx-pay |
| WeChat Official Account (Web Authorization OAuth 2.0, etc.) | awesome-cloudbase-examples/integration/wechat-official |
💡 The README at the repository root explains the directory structure and how to run quickly. Skim it before you start customizing.
WeChat Pay (V3) Official Docs
| Topic | Link |
|---|---|
| JSAPI Order (Mini Program / Official Account Pay) | https://pay.weixin.qq.com/doc/v3/merchant/4012791897 |
| Native Order (PC QR Pay) | https://pay.weixin.qq.com/doc/v3/merchant/4012791919 |
| Pay Notification (Callback) Protocol | https://pay.weixin.qq.com/doc/v3/merchant/4012791901 |
| WeChat Pay Public Key Usage Guide | https://pay.weixin.qq.com/doc/v3/merchant/4013053249 |
WeChat Official Account Docs
| Topic | Link |
|---|---|
| Web Authorization (OAuth 2.0) | https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_webpage_authorization.html |
sns/oauth2/access_token API | https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_webpage_authorization.html#1 |
| Official Account Developer Docs Overview | https://developers.weixin.qq.com/doc/offiaccount/Getting_Started/Overview.html |
WeChat Mini Program Docs
| Topic | Link |
|---|---|
wx.cloud.callHTTPFunction (call HTTP cloud function) | https://developers.weixin.qq.com/miniprogram/dev/wxcloudservice/wxcloud/HTTPCloudFunction.html#%E8%B0%83%E7%94%A8-HTTP-%E4%BA%91%E5%87%BD%E6%95%B0 |
wx.requestPayment (initiate Mini Program payment) | https://developers.weixin.qq.com/miniprogram/dev/api/payment/wx.requestPayment.html |
CloudBase SDKs
| SDK | Link |
|---|---|
| CloudBase Auth · Web SDK | https://docs.cloudbase.net/api-reference/webv2/authentication |
| CloudBase Auth · Authenticated Login | https://docs.cloudbase.net/api-reference/webv2/authentication#%E8%AE%A4%E8%AF%81%E7%99%BB%E5%BD%95 |