CloudBase WeChat Pay & OAuth Integration

•
2
•

Integrates WeChat Pay, Official Account JSAPI, Native QR payments, and OAuth authentication flows using Tencent CloudBase Integration Center.

This skill guides developers through implementing and debugging WeChat ecosystem services on Tencent CloudBase, including Mini Program WeChat Pay (wx.requestPayment), Official Account JSAPI Pay, Native QR-code payments for desktop web checkout, and Official Account OAuth openid resolution. It enforces secure handling of merchant secrets, guides server-side callback verification and idempotency logic, and provides reference architectures for CloudBase Integration Center generated cloud functions without exposing sensitive credentials in source code.

Key Features

01Implements Official Account OAuth authorization and openid/userinfo retrieval
022 GitHub stars
03Supports Mini Program Pay, Official Account JSAPI Pay, and Native QR payments
04Provides troubleshooting routines for credential mismatches, 404s, and webhook issues
05Enforces secure callback verification, transaction status polling, and payment idempotency
06Extends CloudBase Integration Center generated functions with custom fulfillment logic

Use Cases

01Implementing WeChat Pay checkout within a WeChat Mini Program using CloudBase cloud functions
02Setting up Official Account H5 JSAPI payments and OAuth user login workflows
03Building web-based Native QR-code checkout flows with secure payment callback reconciliation