{"id":16418288,"url":"https://github.com/erkanay/paytrek-python-client","last_synced_at":"2025-07-06T14:03:46.402Z","repository":{"id":77328629,"uuid":"116375893","full_name":"erkanay/paytrek-python-client","owner":"erkanay","description":"Python client library for Paytrek API","archived":false,"fork":false,"pushed_at":"2018-01-05T11:01:40.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-06T14:03:29.901Z","etag":null,"topics":["client","gateway","payment","paytrek"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/erkanay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-01-05T11:00:42.000Z","updated_at":"2018-01-05T12:12:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"89d6c7c0-510b-4fc4-afdb-0387ebb8b6e7","html_url":"https://github.com/erkanay/paytrek-python-client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/erkanay/paytrek-python-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erkanay%2Fpaytrek-python-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erkanay%2Fpaytrek-python-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erkanay%2Fpaytrek-python-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erkanay%2Fpaytrek-python-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erkanay","download_url":"https://codeload.github.com/erkanay/paytrek-python-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erkanay%2Fpaytrek-python-client/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263914030,"owners_count":23529074,"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":["client","gateway","payment","paytrek"],"created_at":"2024-10-11T07:13:45.786Z","updated_at":"2025-07-06T14:03:46.381Z","avatar_url":"https://github.com/erkanay.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# paytrek\n\n## Installation\n\n    $ pip install paytrek\n\n## Usage\n\n    \u003e\u003e\u003e from paytrek.client import Paytrek\n    \u003e\u003e\u003e client = Paytrek('username', 'password', 'sandbox')\n    \u003e\u003e\u003e sale_params = {\n            \"amount\": 1.9,\n            \"billing_address\": \"123 Market St. San Francisco\",\n            \"billing_city\": \"San Francisco\",\n            \"billing_country\": \"US\",\n            \"billing_state\": \"CA\",\n            \"billing_zipcode\": \"34410\",\n            \"currency\": \"/api/v1/currency/USD/\",\n            \"customer_email\": \"johndoe@gmail.com\",\n            \"customer_first_name\": \"John\",\n            \"customer_ip_address\": \"212.57.9.204\",\n            \"customer_last_name\": \"Doe\",\n            \"fraud_check_enabled\": False,\n            \"installment\": 1,\n            \"items\": [\n              {\n                \"name\": \"Ramada Hotel\",\n                \"photo\": \"http://d1ldkdiqjyt22f.cloudfront.net/hotelimages/UKSFLE/1937525_140x110.jpg\",\n                \"quantity\": 1,\n                \"unit_price\": 1.9\n               }\n            ],\n            \"order_id\": \"1467034250\",\n            \"pre_auth\": False,\n            \"sale_data\": {},\n            \"secure_option\": \"No\"\n          }\n\n    \u003e\u003e\u003e sale_response = client.sale(sale_params)\n    \u003e\u003e\u003e sale_token = sale_response['token']\n    \u003e\u003e\u003e charge_params = {\n           \"number\":\"4263982640269299\",\n           \"expiration\":\"02/2018\",\n           \"cvc\":\"000\",\n           \"card_holder_name\":\"John Doe\",\n           \"sale\":\"/api/v1/sale/{}/\".format(sale_token)\n        }\n    \u003e\u003e\u003e charge_response = client.charge(charge_params)\n    \n    \u003e\u003e\u003e client.refund(sale_token=sale_token, amount=1)\n\n## License\n\nThis library is available to anybody free of charge, under the terms of MIT License:\n\nCopyright (c) 2018 Erkan Ay\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferkanay%2Fpaytrek-python-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferkanay%2Fpaytrek-python-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferkanay%2Fpaytrek-python-client/lists"}