{"id":17196271,"url":"https://github.com/dundee/qrpay","last_synced_at":"2025-07-07T13:36:39.389Z","repository":{"id":57573663,"uuid":"351947678","full_name":"dundee/qrpay","owner":"dundee","description":"Payment QR Code encoder for Go","archived":false,"fork":false,"pushed_at":"2024-08-05T21:36:12.000Z","size":31,"stargazers_count":11,"open_issues_count":1,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T10:21:12.460Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dundee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-27T00:42:58.000Z","updated_at":"2024-09-25T15:06:15.000Z","dependencies_parsed_at":"2024-06-05T13:29:01.043Z","dependency_job_id":null,"html_url":"https://github.com/dundee/qrpay","commit_stats":null,"previous_names":["dundee/go-qrcode-payment"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dundee%2Fqrpay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dundee%2Fqrpay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dundee%2Fqrpay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dundee%2Fqrpay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dundee","download_url":"https://codeload.github.com/dundee/qrpay/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248767926,"owners_count":21158559,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T01:52:47.945Z","updated_at":"2025-04-13T19:31:39.044Z","avatar_url":"https://github.com/dundee.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"./qr-payment.png\" alt=\"QR code for payment\" align=\"right\"\u003e\n\n# Payment QR code for Go\n\n[![Build Status](https://travis-ci.com/dundee/qrpay.svg?branch=master)](https://travis-ci.com/dundee/qrpay)\n[![codecov](https://codecov.io/gh/dundee/qrpay/branch/master/graph/badge.svg)](https://codecov.io/gh/dundee/qrpay)\n[![Go Report Card](https://goreportcard.com/badge/github.com/dundee/qrpay)](https://goreportcard.com/report/github.com/dundee/qrpay)\n[![Maintainability](https://api.codeclimate.com/v1/badges/6b488832f724e32e0c6e/maintainability)](https://codeclimate.com/github/dundee/qrpay/maintainability)\n[![CodeScene Code Health](https://codescene.io/projects/14391/status-badges/code-health)](https://codescene.io/projects/14391)\n\nGolang library for creating QR codes for payments.\n\n[Short Payment Descriptor](https://en.wikipedia.org/wiki/Short_Payment_Descriptor) format and\n[EPC QR Code](https://en.wikipedia.org/wiki/EPC_QR_code) (SEPA) format is supported.\n\n## Installation\n\n    go get -u github.com/dundee/qrpay\n\n## Usage\n\n### Generating QR code image for Short Payment Descriptor format\n\n```Go\nimport \"github.com/dundee/qrpay\"\n\np := qrpay.NewSpaydPayment()\np.SetIBAN(\"CZ5855000000001265098001\")\np.SetAmount(\"10.8\")\np.SetDate(time.Date(2021, 12, 24, 0, 0, 0, 0, time.UTC))\np.SetMessage(\"M\")\np.SetRecipientName(\"go\")\np.SetNofificationType('E')\np.SetNotificationValue(\"daniel@milde.cz\")\np.SetExtendedAttribute(\"vs\", \"1234567890\")\n\nqrpay.SaveQRCodeImageToFile(p, \"qr-payment.png\")\n```\n\n### Generating QR code image for EPC QR Code\n\n```Go\nimport \"github.com/dundee/qrpay\"\n\np := qrpay.NewEpcPayment()\np.SetIBAN(\"CZ5855000000001265098001\")\np.SetAmount(\"10.8\")\np.SetMessage(\"M\")\np.SetRecipientName(\"go\")\n\nqrpay.SaveQRCodeImageToFile(p, \"qr-payment.png\")\n```\n\nQR code image encoding uses [skip2/go-qrcode](https://github.com/skip2/go-qrcode).\n\n### Getting QR code content for Short Payment Descriptor format\n\n```Go\nimport \"github.com/dundee/qrpay\"\n\np := qrpay.NewSpaydPayment()\np.SetIBAN(\"CZ5855000000001265098001\")\np.SetAmount(\"108\")\n\nfmt.Println(qrpay.GenerateString())\n// Output: SPD*1.0*ACC:CZ5855000000001265098001*AM:108*\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdundee%2Fqrpay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdundee%2Fqrpay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdundee%2Fqrpay/lists"}