https://github.com/antonlindstrom/payqr
payqr - Payments with QR
https://github.com/antonlindstrom/payqr
bank bankgiro payments postgiro qrcode swish
Last synced: 3 months ago
JSON representation
payqr - Payments with QR
- Host: GitHub
- URL: https://github.com/antonlindstrom/payqr
- Owner: antonlindstrom
- Created: 2022-07-16T10:20:15.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-16T10:23:39.000Z (about 3 years ago)
- Last Synced: 2025-04-15T03:17:04.800Z (6 months ago)
- Topics: bank, bankgiro, payments, postgiro, qrcode, swish
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
payqr - Payments with QR
================payqr helps to create QR codes for payments, mainly for the Swedish market but
may be applicable in other places.The goal is to be able to generate multiple QR codes with various payment
methods with one library, applicable to the Swedish market. Further markets
may be looked into in the future.Usage
-------------Here follows a short example, more extensive documentation is available at the
Go docs.q, err := New("5536-7742", "Test AB", "1234", "My message", 50, time.Now()).QR()
if err != nil {
return
}b, err := q.PNG(512)
if err != nil {
return
}fmt.Printf(`
`, base64.StdEncoding.EncodeToString(b))
For now, this supports:
* Bank transfers (BG, PG, IBAN and BBAN).
* SwishAcknowledgements
-------------Further documentation and basis of this library can be found at:
* https://www.qrkod.info/
* https://www.qrkod.info/specification.pdfReporting bugs
--------------If you find any bugs or want to provide feedback, you can file bugs in the project's [GitHub Issues page](https://github.com/antonlindstrom/payqr).
Author
------This project is maintained by [Anton Lindström](https://www.antonlindstrom.com) ([GitHub](https://github.com/antonlindstrom) | [Twitter](https://twitter.com/mycap))
License
-------APACHE LICENSE 2.0
Copyright 2022 Anton LindströmLicensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.