{"id":15372606,"url":"https://github.com/ousret/pyteliummanager","last_synced_at":"2025-08-19T21:31:29.596Z","repository":{"id":46988599,"uuid":"71460208","full_name":"Ousret/pyTeliumManager","owner":"Ousret","description":"Python library to manipulate Ingenico mobile payment device like iCT220 or iWL220 equipped with Telium Manager. RS232/USB.","archived":false,"fork":false,"pushed_at":"2021-09-18T19:38:32.000Z","size":105,"stargazers_count":105,"open_issues_count":3,"forks_count":20,"subscribers_count":19,"default_branch":"master","last_synced_at":"2024-12-18T00:08:49.127Z","etag":null,"topics":["amex","cetelem","credit-card","debit-card","eftsmart2","eftsmart4s","ingenico","ingenico-ict220","payment","point-of-sale","pos","telium-manager"],"latest_commit_sha":null,"homepage":"http://pyteliummanager.readthedocs.io","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/Ousret.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-20T12:21:29.000Z","updated_at":"2024-11-19T19:42:42.000Z","dependencies_parsed_at":"2022-09-10T22:30:43.912Z","dependency_job_id":null,"html_url":"https://github.com/Ousret/pyTeliumManager","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ousret%2FpyTeliumManager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ousret%2FpyTeliumManager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ousret%2FpyTeliumManager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ousret%2FpyTeliumManager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ousret","download_url":"https://codeload.github.com/Ousret/pyTeliumManager/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230367928,"owners_count":18215338,"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":["amex","cetelem","credit-card","debit-card","eftsmart2","eftsmart4s","ingenico","ingenico-ict220","payment","point-of-sale","pos","telium-manager"],"created_at":"2024-10-01T13:52:21.978Z","updated_at":"2024-12-19T03:08:53.479Z","avatar_url":"https://github.com/Ousret.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eWelcome to Ingenico for Human 👋 \u003ca href=\"https://twitter.com/intent/tweet?text=The%20Real%20First%20Universal%20Charset%20%26%20Language%20Detector\u0026url=https://www.github.com/Ousret/pyTeliumManager\u0026hashtags=python,ingenico,credit,cards,debit,developers\"\u003e\u003cimg src=\"https://img.shields.io/twitter/url/http/shields.io.svg?style=social\"/\u003e\u003c/a\u003e\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003csup\u003eOne of the few library that help you use this kind of hardware\u003c/sup\u003e\u003cbr\u003e\n  \u003ca href=\"https://travis-ci.org/Ousret/pyTeliumManager\"\u003e\n    \u003cimg src=\"https://travis-ci.org/Ousret/pyTeliumManager.svg?branch=master\"/\u003e\n  \u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/pypi/pyversions/pyTeliumManager.svg?orange=blue\" /\u003e\n  \u003ca href=\"https://pepy.tech/project/pyTeliumManager/\"\u003e\n    \u003cimg alt=\"Download Count /Month\" src=\"https://pepy.tech/badge/pyTeliumManager/month\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/ousret/pyTeliumManager/blob/master/LICENSE\"\u003e\n    \u003cimg alt=\"License: MIT\" src=\"https://img.shields.io/badge/license-MIT-purple.svg\" target=\"_blank\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://app.codacy.com/project/Ousret/pyTeliumManager/dashboard\"\u003e\n    \u003cimg alt=\"Code Quality Badge\" src=\"https://api.codacy.com/project/badge/Grade/ff5c954c3c2348ce8f3a1b7bd76e964c\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://codecov.io/gh/Ousret/pyTeliumManager\"\u003e\n      \u003cimg src=\"https://codecov.io/gh/Ousret/pyTeliumManager/branch/master/graph/badge.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href='https://pyteliummanager.readthedocs.io/en/latest/?badge=latest'\u003e\n    \u003cimg src='https://readthedocs.org/projects/pyteliummanager/badge/?version=latest' alt='Documentation Status' /\u003e\n  \u003c/a\u003e\n  \u003cimg alt=\"Download Count Total\" src=\"https://pepy.tech/badge/pyTeliumManager\" /\u003e\n  \u003cbr\u003e\n  \u003cimg src=\"http://www.tpe.fr/contents/media/ict220%201%20ls%20%2B%20ipp220.jpg\" width=200/\u003e\n\u003c/p\u003e\n\n\u003e Python library to manipulate Ingenico mobile payment device equipped with Telium Manager. RS232/USB.\n\u003e Please note that every payment device with Telium Manager should, in theory, work with this.\n\n##### PyPi\n\n*Python 2.7 support has been added to master branch since v2.3.0*\n\n```sh\npip install pyTeliumManager --upgrade\n```\n\n##### How to start using pyTeliumManager\n\n```python\n# Import telium package\nfrom telium import *\n\n# Open device\nmy_device = Telium('/dev/ttyACM0')\n\n# Construct our payment infos\nmy_payment = TeliumAsk.new_payment(\n    12.5, \n    payment_mode='debit',  # other mode: credit or refund.\n    target_currency='EUR',\n    wait_for_transaction_to_end=True,  # If you need valid transaction status\n    collect_payment_source_info=True,  # If you need to identify payment source\n    force_bank_verification=False\n)\n\n# Send payment infos to device\ntry:\n    if not my_device.ask(my_payment):\n        print('Your device just refused your transaction. Try again.')\n        exit(1)\nexcept TerminalInitializationFailedException as e:\n    print(format(e))\n    exit(2)\n\n# Wait for terminal to answer\nmy_answer = my_device.verify(my_payment)\n\nif my_answer is not None:\n    # Convert answered data to dict.\n    print(my_answer.__dict__)\n    \n    # \u003e {\n    # '_pos_number': '01', \n    # '_payment_mode': '1', \n    # '_currency_numeric': '978', \n    # '_amount': 12.5, \n    # '_private': '0000000000', \n    # 'has_succeeded': True, \n    # 'transaction_id': '0000000000', \n    # '_transaction_result': 0, \n    # '_repport': '4711690463168807000000000000000000000000000000000000000', \n    # '_card_type': \n    #  {\n    #      '_name': 'VISA', \n    #      '_regex': '^4[0-9]{12}(?:[0-9]{3})?$', \n    #      '_numbers': '4711690463168807', \n    #      '_masked_numbers': 'XXXXXXXXXXXX8807'\n    #  }\n    # }\n\nif my_answer.has_succeeded:\n    print(\"Your payment has been processed using a {0} card. Id: {1}\".format(my_answer.card_type.name, my_answer.card_type.numbers))\nelse:\n    print(\"Your payment was rejected. Try again if you wish to.\")\n```\n\n##### **How to enable computer liaison with Ingenico device**\n\n1. Press \"F\" button\n2. Press 0 - Telium Manager\n3. Press 5 - Init\n4. Press 1 - Param\n5. Select  - Checkout\n6. Select \"Enable\"\n7. Choose your preferred interface (USB, COM1, COM2)\n\n**Tested devices:**\n\n- Ingenico iWL250\n- Ingenico iCT220\n- Ingenico iCT250\n\nShould work with all i**2XX device equipped with Telium Manager app.\nFeel free to repport issue if your device isn't compatible with this package.\n\n**Won't work**\n\n- All direct PinPad liaison, also known as iPP3XX. (see issue #2)\n\n#### Q-A\n\n\u003e Will this package cause loss of money in any way ?\n- You shouldn't worry about that, I've deployed it for a different store in 2015. No loss has been reported yet.\n- If you hesitate on how to use this package, feel free to ask me before using it.\n\n\u003e My device isn't working with this package.\n- Make sure you've followed **How to enable computer liaison with Ingenico device** steps above beforehand.\n- If you're on Windows, make sure you've installed the correct driver.\n- Try every COM port, one by one.\n- On Linux it should be located at */dev/ttyACM0*, if not run ```ls -l /dev/tty* | grep ACM``` to locate it.\n\n#### Contributions\n\nFeel free to propose pull requests. This project may be improved in many ways.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fousret%2Fpyteliummanager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fousret%2Fpyteliummanager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fousret%2Fpyteliummanager/lists"}