Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/paxapos/qr-payment-component

Muestra un QR para procesar pagos online hecho con stenciljs
https://github.com/paxapos/qr-payment-component

Last synced: 2 months ago
JSON representation

Muestra un QR para procesar pagos online hecho con stenciljs

Awesome Lists containing this project

README

        

# qr-pay
Generates a QR using href property and shows a checkmark if the done prop is present

```html

```
(show QR of passed URL)

```html

```
(show DONE CHECK MARK)

How dows it works?

```html

// import stencil js component
import { defineCustomElements } from "https://cdn.jsdelivr.net/npm/[email protected]/dist/loader/index.es2017.js";
defineCustomElements();

DONE
UNDONE

// with JS change "done" property for showing the checkmark
const qr = document.getElementById("qr");
const done = () => qr.setAttribute("done", true);
const undone = () => qr.setAttribute("done", false);

```