{"id":24054885,"url":"https://github.com/matusf/pay-by-square","last_synced_at":"2025-04-22T21:15:21.589Z","repository":{"id":57451161,"uuid":"277180120","full_name":"matusf/pay-by-square","owner":"matusf","description":"Generate pay-by-square code that can by used to create QR code for banking apps","archived":false,"fork":false,"pushed_at":"2024-07-01T10:39:48.000Z","size":32,"stargazers_count":27,"open_issues_count":7,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-22T21:15:04.393Z","etag":null,"topics":["by-square","bysquare","hacktoberfest","pay-by-square","paybysquare","payment"],"latest_commit_sha":null,"homepage":"","language":"Python","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/matusf.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}},"created_at":"2020-07-04T20:24:40.000Z","updated_at":"2025-04-02T10:59:59.000Z","dependencies_parsed_at":"2022-09-26T17:31:29.760Z","dependency_job_id":null,"html_url":"https://github.com/matusf/pay-by-square","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matusf%2Fpay-by-square","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matusf%2Fpay-by-square/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matusf%2Fpay-by-square/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matusf%2Fpay-by-square/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matusf","download_url":"https://codeload.github.com/matusf/pay-by-square/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250324709,"owners_count":21411946,"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":["by-square","bysquare","hacktoberfest","pay-by-square","paybysquare","payment"],"created_at":"2025-01-09T03:59:55.934Z","updated_at":"2025-04-22T21:15:21.534Z","avatar_url":"https://github.com/matusf.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PAY by square\n\nGenerate codes for [by square](https://bysquare.com/) payments.\n\n## Installation\n\nNote: `pay-by-square` generates string that can be passes to QR code generator to create\nimage. To run example below, you need to install\n[qrcode module](https://github.com/lincolnloop/python-qrcode) as well.\n\n```sh\npip install pay-by-square\n```\n\n## Usage\n\n### API\n\n```text\npay_by_square.generate(\n    *,\n    amount: float,\n    iban: str,\n    swift: str = '',\n    date: Optional[date] = None,\n    beneficiary_name: str = '',\n    currency: str = 'EUR',\n    variable_symbol: str = '',\n    constant_symbol: str = '',\n    specific_symbol: str = '',\n    note: str = '',\n    beneficiary_address_1: str = '',\n    beneficiary_address_2: str = '',\n) -\u003e str:\n    Generate pay-by-square code that can by used to create QR code for banking apps\n\n    When date is not provided current date will be used.\n```\n\n### Example\n\n```python\nimport qrcode\nimport pay_by_square\n\n\ncode = pay_by_square.generate(\n    amount=10,\n    iban='SK7283300000009111111118',\n    swift='FIOZSKBAXXX',\n    variable_symbol='47',\n)\n\nprint(code)\nimg = qrcode.make(code)\nimg.show()\n```\n\n## Testing\n\n```sh\npython -m unittest tests.py\n```\n\n---\n\nKudos to [guys from devel.cz](https://devel.cz/otazka/qr-kod-pay-by-square)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatusf%2Fpay-by-square","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatusf%2Fpay-by-square","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatusf%2Fpay-by-square/lists"}