Giter Site home page Giter Site logo

xseman / bysquare Goto Github PK

View Code? Open in Web Editor NEW
27.0 2.0 6.0 1.46 MB

Encode & Decode "PAY by square" QR string.

Home Page: https://xseman.github.io/bysquare/

License: Apache License 2.0

TypeScript 91.86% JavaScript 8.14%
bysquare payment banking qr-string qr-code paybysquare qr-string-generaor cli

bysquare's Introduction

Hello, Friend 👋

I'm hobbyist and researcher interested in software development with focus on
simplicity, clarity, and frugality. I try to delete more code than I write.

Simplicity is complicated
― Rob Pike

Favourite quotes...

Languages & Tools 🔨

The main goal is absolute freedom to use any platform. Try to avoid lock-in at all cost

alt alt alt alt alt alt alt alt alt

alt alt alt alt alt alt alt alt alt alt alt alt alt

bysquare's People

Contributors

dderevjanik avatar github-actions[bot] avatar lukasbicus avatar xseman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bysquare's Issues

Unable to decode data from qrcodes on page https://bsqr.co/generator/?from=product_page

0004G0005ES17OQ09C98Q7ME34TCR3V71LVKD2AE6EGHKR82DKS5NBJ3331VUFQIV0JGMR743UJCKSAKEM9QGVVVOIVH000 [UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "Checksum conflict".] { code: 'ERR_UNHANDLED_REJECTION' }

Last version breaking app

Hello, I used previously lib without issues and generating of QRs was perfect, but since update of version I am getting this error from lib after generate() function.

Here is code(image because code block is not formated properly don't know why):
image

Console:
image

Testing Generated QR Codes on Banking Apps

I need help testing QR codes created with this library on various Slovak banking apps. I want to ensure these codes work properly with different types of data.

Unfortunately, some banking apps might not correctly read QR codes. For example, Tatrabanka's app can't handle QR codes with multiple payment options. While I can help identify issues with the QR codes themselves, I can only test one banking app at a time right now, so I can't check every app out there.

Here is a list of banks that I want to verify for compatibility:

  • Tatra banka (@xseman)
    • PaymentOrder
    • StandingOrder
    • DirectDebit
  • Fio Banka (@LukasBicus)
    • PaymentOrder
    • StandingOrder
    • DirectDebit
  • mBank (@LukasBicus)
    • PaymentOrder
    • StandingOrder
    • DirectDebit
  • 365.bank
  • ČSOB
  • Poštová banka
  • Prima banka
  • Privatbanka
  • Prvá stavebná sporiteľňa
  • Raiffeisen Bank
  • Slovenská sporiteľňa
  • Slovenská záručná a rozvojová banka
  • Všeobecná úverová banka
  • Wüstenrot stavebná sporiteľňa
  • Cofidis
  • BKS Bank
  • Citibank Europe
  • Commerzbank
  • ING Bank
  • J&T Banka
  • Komerční banka
  • Oberbank
  • PKO Bank Polski
  • UniCredit Bank

I just need confirmation that your bank app successfully scanned the QR code.

PaymentOrder StandingOrder DirectDebit
image
  • PaymentOrder, the bank app should display an amount of 100, target IBAN SK9611000000002918599669, currency EUR, variable "123", and note "hello world".
  • StandingOrder
  • DirectDebit

Report template

## <bank>

| PaymentOrder             | StandingOrder            | DirectDebit              |
| ------------------------ | ------------------------ | ------------------------ |
| <img src="" width="200"> | <img src="" width="200"> | <img src="" width="200"> |

Unsupported platform

#npm install bysquare

npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for [email protected]: wanted {"os":"darwin,linux"} (current: {"os":"win32","arch":"x64"})
npm ERR! notsup Valid OS: darwin,linux
npm ERR! notsup Valid Arch: undefined
npm ERR! notsup Actual OS: win32
npm ERR! notsup Actual Arch: x64

Why there was set restriction for linux darwin only?

bysquare/package.json

Lines 53 to 56 in 231689e

"os": [
"darwin",
"linux"
]

docs: add basic html example

I've created simple examples using Lit.js and Preact.js in the docs/examples/web directory.
A simple HTML example without any dependencies would also be helpful.

No import named PaymentOption in v2.8.1

After updating to version 2.8.1 I'm getting error:

import { encode, PaymentOptions } from 'bysquare';
                 ^^^^^^^^^^^^^^
SyntaxError: The requested module 'bysquare' does not provide an export named 'PaymentOptions'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:190:5)

I am using it in Node.js v18.14.2 module without running typescript. Could it be related to the recent tsconfig changes in bysquare?

Some QR codes do not work

Hello,
first thank you very much for this work. It helps me a lot.

During testing we have found out that some QR codes do not work and we can't find why. We are testing with several mobile bank apps (broken QR codes do not work for none)

We are using version 1.0.7 with qrcode 1.5.0.

For example (working solution):
"Amount": "28",
"BankAccounts": "1",
"CurrencyCode": "EUR",
"IBAN": "SK12345600000000000123456",
"PaymentNote": "Name A",
"PaymentOptions": "1",
"Payments": "1",
"SpecificSymbol": "4129",
"VariableSymbol": "2268824129"

Not working:
"Amount": "74",
"BankAccounts": "1",
"CurrencyCode": "EUR",
"IBAN": "SK12345600000000000123456",
"PaymentNote": "Name B",
"PaymentOptions": "1",
"Payments": "1",
"SpecificSymbol": "4129",
"VariableSymbol": "2268824129"

I am open to testing just let me know. Due to privacy reason I am not sharing whole information.

Chybaju dalsie polia

Bolo by fajn, keby tento kod obsahoval VSETKY POLIA, ktore je mozne vyplnit, nie len tie 3 ci 4 (Sprava pre prijimatela, Nazov prijimatela, Datum vykonania/splatnosti, Specificky symbol, Konstantny symbol).
Alebo povedane inak: bolo by dobre vediet, ake su nazvy pre chybajuce polia v tomto kode:

payments: [
    {
        type: PaymentOptions.PaymentOrder,
        amount: this._ammount,
        bankAccounts: [{ iban: this._iban }],
        currencyCode: CurrencyCode.EUR,
        variableSymbol: this._variable
    }
]

Minimalne pole "Sprava pre prijimatela" je totalna nutnost, bez neho nemozem sparovat platbu s e-mailom (v sprave mi totiz klient uvadza svoj e-mail a tak to viem sparovat, dohladat a kontaktovat ho).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.