Skip to content

Cashier Mini-Program: Publish & Go Live ​

Updated: 10/15/26, 5:44:21 PM

The cashier mini-program is published per platform (one mini-program each for WeChat / Alipay / Douyin). Two things matter most: domain verification (proving the domain is yours) and plain-link QR code rules (letting existing QR codes open the mini-program). For compiling and uploading see Cross-Platform Apps.

Go-Live Checklist ​

  1. Register the mini-program on each platform and obtain the AppId;
  2. Complete domain verification (verification file upload);
  3. Configure the plain-link QR code rules;
  4. Configure the request allowed domains;
  5. Build, upload, submit for review, and release.

Step 1: Registration and AppId ​

Register a mini-program on each of the WeChat / Alipay / Douyin open platforms, obtain each AppId, and fill them into the project's platform parameters (the three platforms have independent AppIds). One platform, one mini-program — they do not affect each other.

Step 2: Domain Verification ​

WeChat requires every domain a mini-program calls to pass ownership verification:

  1. The WeChat platform issues a verification file (MP_verify_xxx.txt);
  2. Upload and host the file content in the admin console under "Payment Config → Domain Verification Files" (merchants can also self-service upload it in the merchant console, see Merchant Center);
  3. When you configure the business domain on the WeChat platform, WeChat fetches the file to complete the verification.

Details in Channel Integration - Domain Verification Files.

The merchant's payment QR codes are plain-link QR codes already printed (their content is a URL like https://domain/m/xxx). These rules exist so that on scanning, WeChat / Alipay sees the URL matches a rule and opens the corresponding mini-program page directly — no dedicated mini-program code is needed.

Configure them under "Plain-link QR code jumps to mini program" on the WeChat platform:

Rule prefixPage opened
https://domain/m/*QR terminal payment page
https://domain/cm/*Unified cashier page
https://domain/am/*Aggregate pay page
  • Configure the three rules separately with the prefixes above (domain = the deployed domain of the Payment Gateway (H5));
  • During configuration the platform issues a random verification file; upload and host it in the admin console as in step 2;
  • For Alipay, configure the equivalent under "Scan QR code to enter mini program" on its open platform.

Consequences of missing rules

When a rule is missing or does not match, scanning opens the H5 guide page (prompting the user to scan with a wallet) and the mini-program is not opened — after going live, always verify the full chain with a real printed QR code.

Step 4: Allowed Domains ​

In the mini-program console, add the backend API domain (the payment gateway domain) to the request allowed domains; otherwise all requests fail in production (checking "do not verify domains" in DevTools only works while debugging).

Step 5: Build, Upload, and Review ​

  1. Build the platform target and upload it (operations in Cross-Platform Apps);
  2. Submit for platform review: collection mini-programs must truthfully declare their category and qualifications;
  3. Release after approval. Then use real QR codes to verify that all three chains (QR terminal / cashier / aggregate) open the mini-program and complete payment.

Fallback Behavior and Troubleshooting ​

SymptomCause and fix
Scanning opens the H5 guide pageQR code rule not matched: check the prefix spelling, domain consistency, and whether the mini-program is released
Wallet prompts "collection mini-program unavailable"Same as above (the wallet environment hit the H5 fallback page)
Requests fail in productionRequest allowed domains not configured
Domain verification failsVerification file not uploaded, or uploaded to the wrong owner (platform / merchant level)