{"id":37709145,"url":"https://github.com/skioo/django-datatrans-gateway","last_synced_at":"2026-01-16T13:14:35.536Z","repository":{"id":51556235,"uuid":"99138266","full_name":"skioo/django-datatrans-gateway","owner":"skioo","description":"A django integration for the datatrans payment gateway.","archived":false,"fork":false,"pushed_at":"2022-08-27T14:32:51.000Z","size":107,"stargazers_count":6,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-04T02:52:29.151Z","etag":null,"topics":["datatrans","django","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/skioo.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":"2017-08-02T16:25:22.000Z","updated_at":"2023-03-06T10:36:43.000Z","dependencies_parsed_at":"2022-08-19T17:50:08.011Z","dependency_job_id":null,"html_url":"https://github.com/skioo/django-datatrans-gateway","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/skioo/django-datatrans-gateway","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skioo%2Fdjango-datatrans-gateway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skioo%2Fdjango-datatrans-gateway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skioo%2Fdjango-datatrans-gateway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skioo%2Fdjango-datatrans-gateway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skioo","download_url":"https://codeload.github.com/skioo/django-datatrans-gateway/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skioo%2Fdjango-datatrans-gateway/sbom","scorecard":{"id":829685,"data":{"date":"2025-08-11","repo":{"name":"github.com/skioo/django-datatrans-gateway","commit":"c2159b08935cd0c70355ca6e8ff92bbe86d372cd"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 5 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T17:25:08.861Z","repository_id":51556235,"created_at":"2025-08-23T17:25:08.861Z","updated_at":"2025-08-23T17:25:08.861Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478969,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["datatrans","django","payment"],"created_at":"2026-01-16T13:14:35.429Z","updated_at":"2026-01-16T13:14:35.520Z","avatar_url":"https://github.com/skioo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"django-datatrans-gateway\n========================\n\n[![Build Status](https://travis-ci.org/skioo/django-datatrans-gateway.svg?branch=master)](https://travis-ci.org/skioo/django-datatrans-gateway)\n[![PyPI version](https://badge.fury.io/py/django-datatrans-gateway.svg)](https://badge.fury.io/py/django-datatrans-gateway)\n[![Requirements Status](https://requires.io/github/skioo/django-datatrans-gateway/requirements.svg?branch=master)](https://requires.io/github/skioo/django-datatrans-gateway/requirements/?branch=master)\n[![Coverage Status](https://coveralls.io/repos/github/skioo/django-datatrans-gateway/badge.svg?branch=master)](https://coveralls.io/github/skioo/django-datatrans-gateway?branch=master)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\nA django integration for the datatrans payment gateway.\n\nSupports:\n- Direct payment by the user.\n- Registration of a credit card alias by the user, followed by one or more charges (without the user being present).\n- Refund (total or partial) of a previous successful charge.\n\n\nThis implementation:\n- Handles the exchanges with datatrans, including the signing of requests and the verification of the signature of notifications. All exchanges are logged as structured events, to make auditing easy.\n- Introduces persistent models for AliasRegistration, Payment, and Refund. Both successes and failures are stored.\n- Offers a rich admin interface, allowing ad-hoc payments using registered credit cards, as well as refunds. \n- Sends signals whenever an AliasRegistration, Payment, or Refund is done. The signal is sent even if the operation failed, \nthe receiver should check the `success` flag received with the signal.\n\n\nRequirements\n------------\n\n* Python: 3.6 and over\n* Django: 2.0 and over\n\n\nUsage\n-----\n\nAdd datatrans to your `INSTALLED_APPS`:\n\n    INSTALLED_APPS = (\n        ...\n        'datatrans.apps.DatatransConfig',\n    )\n\n\nInclude `datatrans-urls` to the urlpatterns in your urls.py, for instance:\n\n    urlpatterns = [\n        url(r'^datatrans/', include('datatrans.urls')),\n    ]\n\nConfigure the callback url in the datatrans UPP Administration page.\n\nIn your settings.py, enter the configuration for your web and mpo merchants. For instance:\n\n    DATATRANS = {\n        'WEB_MERCHANT_ID': '1111111111',\n        'WEB_HMAC_KEY': 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA',\n        'MPO_MERCHANT_ID': '2222222222',\n        'MPO_HMAC_KEY': 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB',\n    }\n\n\nTroubleshooting\n---------------\n\nIf you don't see a payment (or a payment error) in the database, and you are sure you've properly configured the callback in the upp,\nthen start by looking in the log for a `datatrans-notification`.\n\n\nDevelopment\n-----------\n\nTo install all dependencies:\n\n    pip install -e .\n\n\nTo run tests:\n\n    pip install pytest-django\n    pytest\n\n\nTo lint, typecheck, test, and verify you didn't forget to create a migration:\n\n    pip install tox\n    tox\n\n\nTo install the version being developed into another django project:\n\n    pip install -e \u003cpath-to-this-directory\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskioo%2Fdjango-datatrans-gateway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskioo%2Fdjango-datatrans-gateway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskioo%2Fdjango-datatrans-gateway/lists"}