【文件属性】:
文件名称:spayd-js:JavaScriptTypeScipt中的Short-Payment-Descriptor库的实现。 主要用于生成QR支付
文件大小:73KB
文件格式:ZIP
更新时间:2021-05-02 09:44:31
TypeScript
spayd-js
JavaScript / TypeScipt中的Short-Payment-Descriptor库的实现。 主要用于生成QR支付。
安装
# yarn
yarn add spayd
# npm
npm install spayd --save
用法
import spayd from 'spayd' ;
const payment = {
acc : 'CZ2806000000000168540115' ,
am : '450.00' ,
cc : 'CZK' ,
msg : 'Payment for some stuff' ,
xvs : '1234567890'
} ;
// print just the SPAYD string
console . log ( spayd ( payment ) ) ;
import qrcode from
【文件预览】:
spayd-js-master
----.gitignore(65B)
----package.json(769B)
----src()
--------Keys.ts(4KB)
--------index.ts(450B)
--------PaymentDescription.ts(270B)
----.travis.yml(955B)
----jest.config.js(162B)
----tsconfig.json(472B)
----rollup.config.js(755B)
----README.md(3KB)
----.npmignore(0B)
----test()
--------spayd.ts(2KB)
----.editorconfig(123B)
----yarn.lock(165KB)