All Projects → mengkunsoft → Oneqrcode

mengkunsoft / Oneqrcode

Licence: mit
📱 微信、支付宝、QQ 三合一收款二维码(单文件版)

Projects that are alternatives of or similar to Oneqrcode

Twofactorauth.net
.Net library for Two Factor Authentication (TFA / 2FA)
Stars: ✭ 182 (-21.89%)
Mutual labels:  qrcode
Escpos Thermalprinter Android
Useful library to help Android developpers to print with (Bluetooth, TCP, USB) ESC/POS thermal printer.
Stars: ✭ 204 (-12.45%)
Mutual labels:  qrcode
Qrcode.vue
A Vue.js component to generate qrcode.
Stars: ✭ 217 (-6.87%)
Mutual labels:  qrcode
Nbzxing
🔥 2020年最好用的开源扫码,全方位优化,强烈推荐!! 支持多种常规zxing无法扫出的码,用就完了!! 🔥
Stars: ✭ 184 (-21.03%)
Mutual labels:  qrcode
Jsqr
A pure javascript QR code reading library. This library takes in raw images and will locate, extract and parse any QR code found within.
Stars: ✭ 2,722 (+1068.24%)
Mutual labels:  qrcode
Flutter qrcode reader
Flutter qrcode reader
Stars: ✭ 210 (-9.87%)
Mutual labels:  qrcode
Qr Code Bundle
Bundle for generating QR codes in Symfony
Stars: ✭ 169 (-27.47%)
Mutual labels:  qrcode
Vue
Make Vue greater with RxTS.
Stars: ✭ 228 (-2.15%)
Mutual labels:  qrcode
Java Library Examples
💪 example of common used libraries and frameworks, programming required, don't fork man.
Stars: ✭ 204 (-12.45%)
Mutual labels:  qrcode
Merger
📲 Merge Your Qrcodes Together. Even Quicker.
Stars: ✭ 218 (-6.44%)
Mutual labels:  qrcode
Pwa Qr Code Scanner
Lightweight progressive web app for scanning QR codes offline
Stars: ✭ 188 (-19.31%)
Mutual labels:  qrcode
Pay
支付 SDK 的集合与重构,支持支付宝、微信支付、银联支付。
Stars: ✭ 198 (-15.02%)
Mutual labels:  pay
Jsqrscanner
JavaScript QR Code scanner for HTML5 supporting browsers
Stars: ✭ 212 (-9.01%)
Mutual labels:  qrcode
Qrcode Library
Create QrCodes with ease
Stars: ✭ 184 (-21.03%)
Mutual labels:  qrcode
Instascan
HTML5 QR code scanner using your webcam
Stars: ✭ 2,657 (+1040.34%)
Mutual labels:  qrcode
Unitybarcodescanner
Simple Unity Barcode Scanner
Stars: ✭ 180 (-22.75%)
Mutual labels:  qrcode
Qrcoder
A pure C# Open Source QR Code implementation
Stars: ✭ 2,794 (+1099.14%)
Mutual labels:  qrcode
Qrcode
qrcode scanner ( decoder ) by golang 二维码扫描识别
Stars: ✭ 233 (+0%)
Mutual labels:  qrcode
Best Pay Sdk
可能是最好的支付SDK
Stars: ✭ 2,651 (+1037.77%)
Mutual labels:  pay
Easyqrcodejs
EasyQRCodeJS is a feature-rich cross-browser pure JavaScript QRCode generation library. Support Canvas, SVG and Table drawing methods. Support Dot style, Logo, Background image, Colorful, Title etc. settings. Support Angular, Vue.js, React, Next.js framework. Support binary(hex) data mode.(Running with DOM on client side)
Stars: ✭ 215 (-7.73%)
Mutual labels:  qrcode

OneQRCode

微信、支付宝、QQ 三合一收款二维码,单文件版

特点

  • 纯前端实现,无需安装,无需数据库;
  • 免维护,无任何多余的配置,只需修改收款链接,即可永久使用。

使用方法

  1. 点击下载 本项目代码到本地;
  2. 打开 index.html,将里面的收款码链接修改成你自己的;
  3. index.html 上传至你的网站空间,即可开始使用!

注意事项

  • 请用专门的 HTML 编辑器(如 VS Code)编辑代码,切勿直接用记事本编辑,否则可能出现中文乱码!
  • 本作品禁止任何形式的倒卖,转载请注明出处。

原理

在 微信、支付宝、QQ 中扫描到一个网址二维码后,一般会通过内置的浏览器打开这个网址。通过判断内置浏览器的 UA,即可得出当前扫码的具体支付平台。

if(navigator.userAgent.match(/Alipay/i)) {
    // 支付宝
} else if(navigator.userAgent.match(/MicroMessenger\//i)) {
    // 微信
} else if(navigator.userAgent.match(/QQ\//i)) {
    // QQ
} else {
    // 其它
}

其中,支付宝可以通过直接跳转收款链接唤起付款功能,而 QQ、微信 则需展示出对应的收款码,由用户自行长按识别真正的收款二维码实现唤起付款。

详细请阅读:

多合一收款二维码原理及实现

更多使用说明请查阅项目wiki

在线演示:

http://lab.mkblog.cn/oneqrcode/

License

MIT License

Copyright (c) 2018 mengkun

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].