How the merged code works

WeChat Pay and Alipay each give a person their own receive code (收款码). A shop counter or a stall that accepts both normally has to print two codes and the payer has to pick the right one. This tool combines your two existing codes into a single QR code. It does not create a new payment account, does not talk to Tencent or Ant Group, and does not change either code. It wraps them.

The merged QR code holds a link to a Link2QR page, link2qr.com/p, followed by a # sign and your two codes encoded as base64url JSON. When someone scans it, the page checks which app opened it by reading the browser user agent:

  • Opened inside Alipay (user agent contains AlipayClient): the page goes to your Alipay receive link, with a button to tap if nothing happens.
  • Opened inside WeChat (user agent contains MicroMessenger): the page shows your WeChat code as an image. The payer long-presses it to recognize the code.
  • Opened anywhere else: the page shows both codes side by side, so the payer can scan the right one.

What the tool accepts

Neither company publishes the format of a personal receive code, so the accepted shapes come from decoded real codes in public technical write-ups. The tool is strict on purpose: the Alipay value is the one address the page will ever navigate to, so it must not be possible to slip a different site into it.

CodeRule the tool applies
WeChat PayText starts with wxp:// followed by 8 to 200 letters, digits or the symbols - . _ ~ % = + /. It is only ever drawn as an image, never opened as a link.
AlipayAn https link on the host qr.alipay.com, at most 200 characters, with one path segment of 6 to 64 letters, digits, - or _, an optional short query, and no port, login or # part.

The page that opens the merged code runs the same checks again before it shows or opens anything, because a link can be hand-made by anyone. If the data is damaged or does not pass, it shows an error instead.

Getting your two codes

Save each receive code as an image from its app, then upload both images above, or paste the text each code decodes to. The WeChat path given in the form comes from the WeChat Pay user manual. Menu names in Alipay can differ between app versions. Images up to 20 MB are decoded in your browser; if the first pass fails, the tool retries with image clean-up steps before giving up. Nothing is uploaded.

Limits you should know

  • Link2QR has not tested the merged page inside WeChat or Alipay. Both apps decide how they treat outside web pages and can change that at any time. Scan the merged code with each app and make a small payment with each before you print.
  • The merged code depends on the link2qr.com/p page loading. The original codes do not.
  • Anyone who scans the merged code can see both of your receive codes, the same as with the two printed codes.
  • Link2QR does not check who owns the codes. The page tells payers to check the payee name in WeChat or Alipay before paying.
  • If you replace a receive code in WeChat or Alipay, make a new merged code. The old one still holds the old code.

Common mistakes

  • Uploading a payment code (付款码) used to pay at a shop, instead of a receive code (收款码).
  • Uploading a cropped or blurry screenshot where the code cannot be found.
  • Putting the WeChat code in the Alipay field or the other way round.
  • Printing the merged code without testing a real payment through both apps.

Frequently Asked Questions

Does Link2QR store my receive codes?

No. Both codes are packed into the part of the link after the # sign. Browsers do not send that part to the server, so the codes live only inside your printed QR code and on the phone that scans it.

Does the money go through Link2QR?

No. The page only shows your own WeChat code or sends the Alipay app to your own Alipay link. Payments happen inside WeChat Pay or Alipay, between the payer and the account that owns each code.

Why does WeChat show an image instead of opening the payment directly?

Public write-ups report that WeChat does not follow a redirect or a script to a wxp:// address. So inside WeChat the page shows your WeChat code as an image, and the payer long-presses it to recognize the code.

Can I use a merchant code or a code with a fixed amount?

The tool accepts only a WeChat code whose text starts with wxp:// and an Alipay code whose text is a link on https://qr.alipay.com/. Anything else is refused. Whether a particular code of that shape works through the merged page is something only a test payment can show.

What if Link2QR is offline?

The merged code is a link to link2qr.com/p, so it needs that page to load. Keep your two original receive codes as a backup, or print them next to the merged code.