{ "info": { "author": "iyzico", "author_email": "iyzico-ci@iyzico.com", "bugtrack_url": null, "classifiers": [], "description": "Copyright (c) 2016 - iyzico odeme hizmetleri A.S. (https://iyzico.com)\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 all\ncopies 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 THE\nSOFTWARE.\n\nDescription: # iyzipay-python\n \n [![Build Status](https://travis-ci.org/iyzico/iyzipay-python.svg?branch=master)](https://travis-ci.org/iyzico/iyzipay-python)\n \n You can sign up for an iyzico account at https://iyzico.com\n \n # Requirements\n \n Python 2.6 and later.\n \n ### Note\n \n Python 2.6 will not be supported in March 2018 for TLS 1.2 migration. Please upgrade your Python version to minimum 2.7.9. If you have any questions, please open an issue on Github or contact us at integration@iyzico.com.\n \n # Installation\n \n ### PyPI\n \n You can install the bindings via [PyPI](https://pypi.python.org). Run the following command:\n \n ```bash\n pip install iyzipay\n ```\n \n Or:\n \n ```bash\n easy_install iyzipay\n ```\n \n ### Manual Installation\n \n If you do not wish to use pip, you can download the [latest release](https://github.com/iyzico/iyzipay-python/releases). Then, to use the bindings, import iyzipay package.\n \n ```python\n import iyzipay\n ```\n \n # Usage\n \n ```python\n options = {\n 'api_key': 'your api key',\n 'secret_key': 'your secret key',\n 'base_url': 'sandbox-api.iyzipay.com'\n }\n \n payment_card = {\n 'cardHolderName': 'John Doe',\n 'cardNumber': '5528790000000008',\n 'expireMonth': '12',\n 'expireYear': '2030',\n 'cvc': '123',\n 'registerCard': '0'\n }\n \n buyer = {\n 'id': 'BY789',\n 'name': 'John',\n 'surname': 'Doe',\n 'gsmNumber': '+905350000000',\n 'email': 'email@email.com',\n 'identityNumber': '74300864791',\n 'lastLoginDate': '2015-10-05 12:43:35',\n 'registrationDate': '2013-04-21 15:12:09',\n 'registrationAddress': 'Nidakule G\u00f6ztepe, Merdivenk\u00f6y Mah. Bora Sok. No:1',\n 'ip': '85.34.78.112',\n 'city': 'Istanbul',\n 'country': 'Turkey',\n 'zipCode': '34732'\n }\n \n address = {\n 'contactName': 'Jane Doe',\n 'city': 'Istanbul',\n 'country': 'Turkey',\n 'address': 'Nidakule G\u00f6ztepe, Merdivenk\u00f6y Mah. Bora Sok. No:1',\n 'zipCode': '34732'\n }\n \n basket_items = [\n {\n 'id': 'BI101',\n 'name': 'Binocular',\n 'category1': 'Collectibles',\n 'category2': 'Accessories',\n 'itemType': 'PHYSICAL',\n 'price': '0.3'\n },\n {\n 'id': 'BI102',\n 'name': 'Game code',\n 'category1': 'Game',\n 'category2': 'Online Game Items',\n 'itemType': 'VIRTUAL',\n 'price': '0.5'\n },\n {\n 'id': 'BI103',\n 'name': 'Usb',\n 'category1': 'Electronics',\n 'category2': 'Usb / Cable',\n 'itemType': 'PHYSICAL',\n 'price': '0.2'\n }\n ]\n \n request = {\n 'locale': 'tr',\n 'conversationId': '123456789',\n 'price': '1',\n 'paidPrice': '1.2',\n 'currency': 'TRY',\n 'installment': '1',\n 'basketId': 'B67832',\n 'paymentChannel': 'WEB',\n 'paymentGroup': 'PRODUCT',\n 'paymentCard': payment_card,\n 'buyer': buyer,\n 'shippingAddress': address,\n 'billingAddress': address,\n 'basketItems': basket_items\n }\n \n payment = iyzipay.Payment().create(request, options)\n ```\n See other samples under samples directory.\n \n ### Mock test cards\n \n Test cards that can be used to simulate a *successful* payment:\n \n Card Number | Bank | Card Type\n ----------- | ---- | ---------\n 5890040000000016 | Akbank | Master Card (Debit) \n 5526080000000006 | Akbank | Master Card (Credit) \n 4766620000000001 | Denizbank | Visa (Debit) \n 4603450000000000 | Denizbank | Visa (Credit)\n 4729150000000005 | Denizbank Bonus | Visa (Credit) \n 4987490000000002 | Finansbank | Visa (Debit) \n 5311570000000005 | Finansbank | Master Card (Credit) \n 9792020000000001 | Finansbank | Troy (Debit) \n 9792030000000000 | Finansbank | Troy (Credit) \n 5170410000000004 | Garanti Bankas\u0131 | Master Card (Debit) \n 5400360000000003 | Garanti Bankas\u0131 | Master Card (Credit) \n 374427000000003 | Garanti Bankas\u0131 | American Express \n 4475050000000003 | Halkbank | Visa (Debit) \n 5528790000000008 | Halkbank | Master Card (Credit) \n 4059030000000009 | HSBC Bank | Visa (Debit) \n 5504720000000003 | HSBC Bank | Master Card (Credit) \n 5892830000000000 | T\u00fcrkiye \u0130\u015f Bankas\u0131 | Master Card (Debit) \n 4543590000000006 | T\u00fcrkiye \u0130\u015f Bankas\u0131 | Visa (Credit) \n 4910050000000006 | Vak\u0131fbank | Visa (Debit) \n 4157920000000002 | Vak\u0131fbank | Visa (Credit) \n 5168880000000002 | Yap\u0131 ve Kredi Bankas\u0131 | Master Card (Debit) \n 5451030000000000 | Yap\u0131 ve Kredi Bankas\u0131 | Master Card (Credit) \n \n *Cross border* test cards:\n \n Card Number | Country\n ----------- | -------\n 4054180000000007 | Non-Turkish (Debit)\n 5400010000000004 | Non-Turkish (Credit) \n 6221060000000004 | Iran \n \n Test cards to get specific *error* codes:\n \n Card Number | Description\n ----------- | -----------\n 5406670000000009 | Success but cannot be cancelled, refund or post auth\n 4111111111111129 | Not sufficient funds\n 4129111111111111 | Do not honour\n 4128111111111112 | Invalid transaction\n 4127111111111113 | Lost card\n 4126111111111114 | Stolen card\n 4125111111111115 | Expired card\n 4124111111111116 | Invalid cvc2\n 4123111111111117 | Not permitted to card holder\n 4122111111111118 | Not permitted to terminal\n 4121111111111119 | Fraud suspect\n 4120111111111110 | Pickup card\n 4130111111111118 | General error\n 4131111111111117 | Success but mdStatus is 0\n 4141111111111115 | Success but mdStatus is 4\n 4151111111111112 | 3dsecure initialize failed\n \nPlatform: UNKNOWN\nClassifier: Intended Audience :: Developers\nClassifier: License :: OSI Approved :: MIT License\nClassifier: Operating System :: OS Independent\nClassifier: Programming Language :: Python\nClassifier: Programming Language :: Python :: 2\nClassifier: Programming Language :: Python :: 2.6\nClassifier: Programming Language :: Python :: 2.7\nClassifier: Programming Language :: Python :: 3\nClassifier: Programming Language :: Python :: 3.2\nClassifier: Programming Language :: Python :: 3.3\nClassifier: Programming Language :: Python :: 3.4\nClassifier: Programming Language :: Python :: 3.5\nClassifier: Programming Language :: Python :: Implementation :: PyPy\nClassifier: Topic :: Software Development :: Libraries :: Python Modules\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/iyzico/iyzipay-python", "keywords": "", "license": "The MIT License (MIT)", "maintainer": "", "maintainer_email": "", "name": "iyzipay", "package_url": "https://pypi.org/project/iyzipay/", "platform": "", "project_url": "https://pypi.org/project/iyzipay/", "project_urls": { "Homepage": "https://github.com/iyzico/iyzipay-python" }, "release_url": "https://pypi.org/project/iyzipay/1.0.32/", "requires_dist": null, "requires_python": "", "summary": "iyzipay api python client", "version": "1.0.32" }, "last_serial": 3854113, "releases": { "1.0.0": [], "1.0.10": [ { "comment_text": "", "digests": { "md5": "7d49c292c4338b54a5376cae357cbb48", "sha256": "d1eee130a7dc8e3711ef55c153153536d5bbbaf3c91f6527420f0b92c0df0eaf" }, "downloads": -1, "filename": "iyzipay-1.0.10.tar.gz", "has_sig": false, "md5_digest": "7d49c292c4338b54a5376cae357cbb48", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13430, "upload_time": "2016-03-24T14:26:31", "url": "https://files.pythonhosted.org/packages/67/a0/816e0748f1f3450ffe3acd38559912da60e997ed3d4410ad08a582ecb206/iyzipay-1.0.10.tar.gz" } ], "1.0.13": [ { "comment_text": "", "digests": { "md5": "bfdc6517b216d44a64dc847fbb14b60b", "sha256": "af971b7d2fd560f95b0fc68d3461e61b8324c4d1310a18a345408ed248e9425a" }, "downloads": -1, "filename": "iyzipay-1.0.13.tar.gz", "has_sig": false, "md5_digest": "bfdc6517b216d44a64dc847fbb14b60b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13435, "upload_time": "2016-03-25T13:33:30", "url": "https://files.pythonhosted.org/packages/ae/bf/5d295afe67d846c2b7b33992bd82e50da773445044c76e23774ea61ce79b/iyzipay-1.0.13.tar.gz" } ], "1.0.14": [ { "comment_text": "", "digests": { "md5": "222f3f05fa0a4156a04fc2b76d713134", "sha256": "429435d88d3733bee73826f08082b719df299a6acdfd1806f8f54f34e0ee3b87" }, "downloads": -1, "filename": "iyzipay-1.0.14.tar.gz", "has_sig": false, "md5_digest": "222f3f05fa0a4156a04fc2b76d713134", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14330, "upload_time": "2016-04-12T11:28:24", "url": "https://files.pythonhosted.org/packages/a9/f6/957f93851a9fc259a6f7d9546429facd40ba26228f1baaf82cc67321b03a/iyzipay-1.0.14.tar.gz" } ], "1.0.15": [ { "comment_text": "", "digests": { "md5": "de88a42437c0ae8e792864e97625c587", "sha256": "3bb47fc19aa0302eefbbb7811f4bd2def7dad1778eacea2abc9f64c7e0ae324a" }, "downloads": -1, "filename": "iyzipay-1.0.15.tar.gz", "has_sig": false, "md5_digest": "de88a42437c0ae8e792864e97625c587", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14503, "upload_time": "2016-05-06T07:26:27", "url": "https://files.pythonhosted.org/packages/74/46/7c9a1e47ed2983bdf0ec559d50c6ebe57fcff1e5a7e6dbcb82629e2991b6/iyzipay-1.0.15.tar.gz" } ], "1.0.18": [ { "comment_text": "", "digests": { "md5": "f5a58452a312a44a05f4fb5c9ad264cd", "sha256": "a668f733dfa5b19736cc217aa887069d69a954ce9cdb766e65f193a2691347a5" }, "downloads": -1, "filename": "iyzipay-1.0.18.tar.gz", "has_sig": false, "md5_digest": "f5a58452a312a44a05f4fb5c9ad264cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14506, "upload_time": "2016-05-11T09:14:25", "url": "https://files.pythonhosted.org/packages/be/05/7527d11a215d4e52673bdfcd9a11d9dd3a38735dbfe25d292652900699c4/iyzipay-1.0.18.tar.gz" } ], "1.0.19": [ { "comment_text": "", "digests": { "md5": "d64eb2704a70c3551e32380af2a70ad9", "sha256": "738aa38ad9501ccf691371f04757c42fd58ed7a4eeac357966aa76b77b5afa5f" }, "downloads": -1, "filename": "iyzipay-1.0.19.tar.gz", "has_sig": false, "md5_digest": "d64eb2704a70c3551e32380af2a70ad9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14616, "upload_time": "2016-06-02T07:45:32", "url": "https://files.pythonhosted.org/packages/9f/a0/0e15ec74f39f5b913d558b510521f98760959fa24a8769ed6fa8c752b60f/iyzipay-1.0.19.tar.gz" } ], "1.0.20": [ { "comment_text": "", "digests": { "md5": "6516b496bbf6e45056e8ad06720c74d8", "sha256": "b532a9046715e0e2ce3d50f6ee75eaf6b2df7cd201aa667ea5ace153b8d72a42" }, "downloads": -1, "filename": "iyzipay-1.0.20.tar.gz", "has_sig": false, "md5_digest": "6516b496bbf6e45056e8ad06720c74d8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15008, "upload_time": "2016-06-14T06:54:40", "url": "https://files.pythonhosted.org/packages/58/48/4fe55f4450fbe7f6f7bede55a945cb08cff1170282fc5be3b93216950cae/iyzipay-1.0.20.tar.gz" } ], "1.0.21": [ { "comment_text": "", "digests": { "md5": "0da5a59ccd0cbcdd860d9ea74fc985ee", "sha256": "95fd7e0b124a8d615905aff487a00de1e048909521adb22d91f75c931d7e5257" }, "downloads": -1, "filename": "iyzipay-1.0.21.tar.gz", "has_sig": false, "md5_digest": "0da5a59ccd0cbcdd860d9ea74fc985ee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15002, "upload_time": "2016-06-14T08:28:48", "url": "https://files.pythonhosted.org/packages/d0/ae/7cccc7a5b0054707e9135aace7c94471bec7e2b45faec9d27f7459bab271/iyzipay-1.0.21.tar.gz" } ], "1.0.24": [ { "comment_text": "", "digests": { "md5": "0d979f456749119669534c736b86a445", "sha256": "8bf72800829294743ecf244600fc2e5f19333c5ef6a17175731b80b912cefcef" }, "downloads": -1, "filename": "iyzipay-1.0.24.tar.gz", "has_sig": false, "md5_digest": "0d979f456749119669534c736b86a445", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14457, "upload_time": "2016-12-06T07:08:15", "url": "https://files.pythonhosted.org/packages/b6/c8/43f9e3c9b1d14b9ab7e24b03afd4f5ba8f820e657b6012419e56c74ab263/iyzipay-1.0.24.tar.gz" } ], "1.0.25": [ { "comment_text": "", "digests": { "md5": "dabe59ca59e6919b1dbcc90c1556b382", "sha256": "2bb0540c6e5ca299b4aded1452671ecb41508ab0dbd6bf5d21dedece5897fa89" }, "downloads": -1, "filename": "iyzipay-1.0.25.tar.gz", "has_sig": false, "md5_digest": "dabe59ca59e6919b1dbcc90c1556b382", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14460, "upload_time": "2017-03-07T20:59:21", "url": "https://files.pythonhosted.org/packages/82/e0/6994692a1bee4147eaf96c084e96a07a3f8c2816527ee2a9eb3ca108920f/iyzipay-1.0.25.tar.gz" } ], "1.0.28": [ { "comment_text": "", "digests": { "md5": "f38ab80ce30afc1305aa56ffc773a642", "sha256": "fc1cebf7f941d8d7944f0b7a4c296c107472920371f4c1f6e8508d62d93cdac5" }, "downloads": -1, "filename": "iyzipay-1.0.28.tar.gz", "has_sig": false, "md5_digest": "f38ab80ce30afc1305aa56ffc773a642", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15025, "upload_time": "2017-09-13T11:28:22", "url": "https://files.pythonhosted.org/packages/19/ab/3137657ed9d09dd61dd24de166054a0b9b047bf82d85b4f98940ef361505/iyzipay-1.0.28.tar.gz" } ], "1.0.29": [ { "comment_text": "", "digests": { "md5": "40d6031982eac53343bf38e105be68bb", "sha256": "1e134bec34576ae637dfab2d21dde9211514022c6573ee2dcb6385e9e103b125" }, "downloads": -1, "filename": "iyzipay-1.0.29.tar.gz", "has_sig": false, "md5_digest": "40d6031982eac53343bf38e105be68bb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15033, "upload_time": "2017-09-28T13:11:47", "url": "https://files.pythonhosted.org/packages/37/1d/932d1e176b207eb64f094b33030f1b839064ead4ba45ddcbced5f3be65dd/iyzipay-1.0.29.tar.gz" } ], "1.0.30": [ { "comment_text": "", "digests": { "md5": "258f2e6af340b632dcc3bc21588fabe8", "sha256": "d4173cd8e859dd4e852ac4f25ce7e86714a5fbc79e9dc4cc5b80f16f6eed7579" }, "downloads": -1, "filename": "iyzipay-1.0.30.tar.gz", "has_sig": false, "md5_digest": "258f2e6af340b632dcc3bc21588fabe8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15108, "upload_time": "2017-12-20T14:35:46", "url": "https://files.pythonhosted.org/packages/78/f5/897581f1741f33cc6e4177d5683fce9888a85b0f6ab0ebd442f06258a44b/iyzipay-1.0.30.tar.gz" } ], "1.0.31": [ { "comment_text": "", "digests": { "md5": "7c11a04867c871e1c92f710fd9981ec9", "sha256": "fe671147620bcd43fcab1ab9173e5c15c8c24f2be490b42f5eb29e0754150952" }, "downloads": -1, "filename": "iyzipay-1.0.31.tar.gz", "has_sig": false, "md5_digest": "7c11a04867c871e1c92f710fd9981ec9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15100, "upload_time": "2018-01-04T14:29:42", "url": "https://files.pythonhosted.org/packages/ef/ff/5c1f73980e4bc0e5cc0cc45e7f23f6015902286215579ec4ab41c6e7c5d7/iyzipay-1.0.31.tar.gz" } ], "1.0.32": [ { "comment_text": "", "digests": { "md5": "eeb8974a8c465454cef960579b0c170f", "sha256": "1f123069463f2e4764c2784c51875fac4bfa2492e149ae934f68356d9eb6fe83" }, "downloads": -1, "filename": "iyzipay-1.0.32.tar.gz", "has_sig": false, "md5_digest": "eeb8974a8c465454cef960579b0c170f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13534, "upload_time": "2018-05-11T13:29:52", "url": "https://files.pythonhosted.org/packages/64/f9/417142120f8e4fc959ac48b41641322c7ed1a34b2e1b1ad900ee58db0e90/iyzipay-1.0.32.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "eeb8974a8c465454cef960579b0c170f", "sha256": "1f123069463f2e4764c2784c51875fac4bfa2492e149ae934f68356d9eb6fe83" }, "downloads": -1, "filename": "iyzipay-1.0.32.tar.gz", "has_sig": false, "md5_digest": "eeb8974a8c465454cef960579b0c170f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13534, "upload_time": "2018-05-11T13:29:52", "url": "https://files.pythonhosted.org/packages/64/f9/417142120f8e4fc959ac48b41641322c7ed1a34b2e1b1ad900ee58db0e90/iyzipay-1.0.32.tar.gz" } ] }