{"id":22321424,"url":"https://github.com/madspindel/swish-python","last_synced_at":"2026-02-14T02:05:23.741Z","repository":{"id":50152803,"uuid":"50684313","full_name":"MadSpindel/swish-python","owner":"MadSpindel","description":"💰 Swish Python Client Library","archived":false,"fork":false,"pushed_at":"2024-07-12T19:31:29.000Z","size":83,"stargazers_count":25,"open_issues_count":2,"forks_count":15,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-08T05:27:19.007Z","etag":null,"topics":["bankid","e-commerce","payments","swish"],"latest_commit_sha":null,"homepage":"https://developer.swish.nu/","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/MadSpindel.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":"2016-01-29T19:01:58.000Z","updated_at":"2024-11-18T20:18:16.000Z","dependencies_parsed_at":"2024-06-17T21:24:43.027Z","dependency_job_id":"f515a31b-3a80-4cb9-a340-91549afd7e10","html_url":"https://github.com/MadSpindel/swish-python","commit_stats":{"total_commits":91,"total_committers":6,"mean_commits":"15.166666666666666","dds":0.1648351648351648,"last_synced_commit":"cee2a147b1d567417aa6e37e9a3fd60ca269c69a"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MadSpindel%2Fswish-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MadSpindel%2Fswish-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MadSpindel%2Fswish-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MadSpindel%2Fswish-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MadSpindel","download_url":"https://codeload.github.com/MadSpindel/swish-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234021235,"owners_count":18767219,"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":["bankid","e-commerce","payments","swish"],"created_at":"2024-12-04T00:17:57.908Z","updated_at":"2026-02-14T02:05:23.700Z","avatar_url":"https://github.com/MadSpindel.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![swish](https://cloud.githubusercontent.com/assets/3159565/14217729/1d4b6732-f850-11e5-8a00-90d4ab30ddbd.png)\n\n[![Build Status](https://travis-ci.org/MadSpindel/swish-python.svg?branch=master)](https://travis-ci.org/MadSpindel/swish-python)\n[![codecov.io](https://codecov.io/github/MadSpindel/swish-python/coverage.svg?branch=master)](https://codecov.io/github/MadSpindel/swish-python?branch=master)\n# 💰 Swish Python Client Library\nThis client library is designed to support the Swish handel API.\n\n[Offical Integration Guide](https://assets.ctfassets.net/zrqoyh8r449h/68UD4zzhqCEVffNDD7G2ko/e53ac6bae9d3608858fd98d58732f336/Merchant_Integration_Guide_2.5.pdf)\n\n## 🏗 Installation\nIt's easy! Just install it with pip:\n```\npip install swish\n```\n## 📋 Quick Start Example\n```python\nimport swish\n\nswish_client = swish.SwishClient(\n    environment=swish.Environment.MSS,\n    merchant_swish_number='1231181189',\n    cert=('/path/to/cert.pem', '/path/to/key.pem'),\n    verify='/path/to/swish.pem'\n)\n\npayment = swish_client.create_payment(\n    payee_payment_reference='0123456789',\n    callback_url='https://example.com/api/swishcb/paymentrequests',\n    payer_alias='46712345678',\n    amount=100,\n    currency='SEK',\n    message='Kingston USB Flash Drive 8 GB'\n)\n\n# YOUR CODE: Save payment.id and other info in your database for later!\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadspindel%2Fswish-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmadspindel%2Fswish-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadspindel%2Fswish-python/lists"}