Skip to main content
Wechat In App

Prerequisites

To use WeChat In-App payments, merchants must:
  • Register on the WeChat Open Platform
  • Create an App and obtain an AppID
  • Complete WeChat approval and onboarding
More details:
WeChat Official In-App Payment Guide

Real-name Verification (Optional)

Merchants may enable real-name verification.
  • Applies to Mainland China users only
  • The WeChat Wallet identity must match submitted details
  • Users can still pay without linking a bank card
  • Availability depends on merchant configuration and PayType support

SDK Downloads

Download the official SDK: WeChat SDK Download Page

API Request

HTTP Request

  • Method: POST
  • Endpoint: /trade/v1/payment
  • PayType: 800210
Confirm the PayType with QFPay if your account uses a different code for WeChat In-App payments.

Request Parameters


Real-Name Verification Format (extend_info)

Submit real-name verification information only when required for Mainland China flows.
  • user_creid — Mainland China ID number
  • user_truename — payer’s real name (Unicode or Chinese characters)

Sample Request


API Response

Response Parameters


Sample Response


Calling the WeChat SDK

After receiving pay_params, pass the values into the WeChat SDK. Official Documentation

Required Parameter Mapping

  • appid
  • partnerid
  • prepayid
  • package
  • noncestr
  • timestamp
  • sign

Summary

  • Designed for native mobile apps only
  • Requires WeChat Open Platform registration & AppID approval
  • Payment flow is handled by the official WeChat SDK
  • Always confirm final status using the Transaction Enquiry API