Merge your qrcode quicker.
In China, we use at least three different apps to pay, with all different qrcodes. It's a problem that you might get it wrong while you are super busy. Why don't we merge them into one with fantastic styles that everyone would love'in it. And...additionally, being a bit more international?
Merger is a HTML template that allows you to merge muiltple payment qrcode together.
- Fast speed. Every static file can be distribute by jsDelivr, a global accelerated CDN.
- Highly customizable. You can modify everything displayed on the page with no special programming technique required.
- Straightforward configuration. You may want to create your own version, and we have provided you with convenience. All you have to do is fill in the content you want, and our code will support you and do all the other work.
- "Transformer" style. Your user may open your site to pay to you in a couple of different ways.
Mergerconsidered everything for you and it will present itself in different ways to make sure the user's need is fitted.
Please use the
releasefunction of this project at: https://github.com/hifocus/merger/releases. Please only use the latest, non pre-release version of
Mergerin production environment.
If you have no idea about how to edit the
.htmlfile to get your own merged qrcode, we suggest you to use Visual Studio Code, an open source code editor. Download it directly from HXCO Get: https://get.soft.org/vscode.
During the development of this project, bugs might appear and affect your site. Here are two suggestions:
- Make sure your
Mergerversion is at stable. To do this, download the latest release which is not
pre-release. Stable version of
Mergeroften contains latest security update and bug fixes. Stick with them to make sure nothing goes wrong.
- Check out frequently, or subscribe to our Bugs Notice Board. All knwon bugs will appear over there and their status will also be updated.
ICP Notice for China
In some Chinese app, especially for WeChat, the internal browser will display a security remind page for those domains that have no ICP record in China. Obviously, this is not friendly to users and they might doubt the safety of your site. Here are two solutions:
- Use ICP recorded domain, like our demo site: https://demo.qrcdn.com
- Use GitHub Pages subdomain. GitHub's domain was marked as green in QQ and WeChat by somehow without having ICP records. So Use GitHub Pages to build your own
Mergerbut do not use a custom domain. Use the default
username.github.iosubdomain. Please try out this one: https://hifocus.github.io/Merger_Demo/merger.html to see how it works in WeChat.
How to configure
The configuration is easy. We made it!
You will need to configure the
head tag of the
<title>Merger Demo - merge your qrcode quicker</title>
title tag will decide what to display in browser's tab. Edit it to something like "Pay to David" to make more sense to users.
<meta name="Keywords" content="Merger,open source,hxco,hifocus,merge qrcode,qrcode" /> <meta name="Description" content="Merger is the most simple way to merge your qrcode together." />
meta tags with SEO information included in the
head section. Please remove them if you don't want the search engine to list your site in its results.
<link rel="shortcut icon" type="image/x-icon" href="https://ws1.sinaimg.cn/large/0072Lfvtly1fyegd14voyj30dw0dwt9x.jpg">
You are more then welcome to edit other parts of the
head tag if you know what to do, expect the
<meta name="author" content="Huangxin, LF112" /> bit. You can only remove them if you really don't want them to appear while copyright reservation is require if you decide to use this project.
Main Config Section
Right under the
<body> tag that you can see underneath the
<head> section, there is the
Config part. Configure everything you need here. and no where else.
There are detailed code comments in the
Config part. Basically, everything is this format:
var something = "something actual";
Please be careful about the part after the
=. Don't forget to quote your own information (like your wechat pay link) with the double quotes
"" and add a semicolon
; at the end.
You will have to fill in your payment links, from WeChat Pay, Alipay, Tenpay(from Mobile QQ) and Paypal. For Wechat Pay, Alipay and Tenpay, you can get your actual link by decoding your payment qrcode. For Paypal, simply create your own paypal.me link and put it in.
Then you fill in your preferred name and profile photo link (at least 200x200 px). Other variable guide please follow the code comment.
How to Deploy
Merger is a html template so anywhere can run static website would be fine. If you don't have your own
Shared Hosting Service or
Virtual Private Server, use service like GitHub Pages. Simply upload everything involved to your service and serve it from your domain. If you don't have a domain, get one for free from Freenom or buy one.
Merger detacts user's
UserAgent and sort them into different categories. Every sinle category will have different presentation of the site.
If the user opens the site from desktop end (like a PC browser), he will get the desktop view of the site. In this case, he gets to choose a way to pay you. For wechat pay, alipay and tenpay, he will get the direct qrcode instantly (which are generated by JQuery qrcode plugin). He scans it, you can paid. Simple.
If the user opens the site from mobile end, and in a mobile browser (like Chrome for Android), he will still get the option to choose payment method and pay you. The style will be adjusted slightly.
If the users open the site from mobile end, and in those specifc app (wechat pay, alipay, etc.) he will be shown with the direct qrcode. He will need to keep pressing the qrcode until the menu pops out and show the option to
Identify the qrcode. Then you get paid.
For Mobile QQ only, the internal browser does not support the identify of qrcode that is in
data:image type (default type), so
Merger will import the qrcode from the qrcode API, which is configurable in the
For Alipay only, user will be redirect to the payment link directly. No need for second-time scaning.
Any kind of contribute will be more than welcome.
star this project if you like it, or using it, or find it helpful to you in any form.
Please consider to donate to me by https://demo.qrcdn.com. It really does take me a long time to develop this project.
This project uses several open source projects. Thanks to them.
- Spectre.css. Powers
- JQuery. Powers
- lrsjng/jquery-qrcode. Generate qrcode for
- jsDelivr. Merge
Merger's static files to reduce the request amount and its CDN service
cdn.jsdelivr.netto accerlate the loading speed.
- hifocus/Grouper. Provide with good html framework to draw with.
- Pure CSS3 Gradient Background Animation A nice little background animation on codepen.io. Code by Manuel Pinto.
This project also uses iconfont's service to display different icons in buttons, and its CDN service
at.alicdn.com to accerlate the loading speed.
Please do keep our copyright information.
If you decide to use
Merger in any form,
You may remove:
- The author meta tag
- The console copyright information (by disabling the
You may not remove:
- Any copyright information in
merger.html's copyright information in code comments (unless you keep the console copyright information by enabling the
debugmode, which is defaulted.)
If you against our copyright reservation requirements, your name might appears in our shame wall. Which is currently blank.
Please be aware that
Merger is opensourced and released under the GNU General Public License v3.0, you are not allowed to disclose source and you are restricted to use the same license when doing modifications. More about permissions, limitations and conditions of our license, please see https://github.com/hifocus/merger/blob/master/LICENSE to learn more in detail.