{ "info": { "author": "Alireza Khoshghalb", "author_email": "alirezakhoshghalb@ymail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.11", "Framework :: Django :: 2.0", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "django-pardakht\n===============\n\n**What's this?**\n\nYou can use this app to create payments in your django project via Iranian gateways. (Right now only Zarinpal and Saman are available but the rest are coming soon)\n\n**How does it work?**\n\nYou ask the app for a new payment and it will give you a link on your own site that you can redirect users to it in order to have a payment.\n\n.. image:: http://img.majidonline.com/pic/321293/1.png\n\n.. image:: http://img.majidonline.com/pic/321294/2.png\n\n.. image:: http://img.majidonline.com/pic/321295/3.png\n\n\n**Installation**\n\n1. ``pip install django-pardakht``\n\n2. Add ``pardakht`` to your ``INSTALLED_APPS``\n\n3. ``python manage.py migrate``\n\n4. Add ``pardakht`` urls to your project's urls.\n\n::\n\n from pardakht import urls as pardakht_urls\n urlpatterns = [\n ...\n \n url(r'^/', include(pardakht_urls)),\n \n ...\n ]\n\n5. For any gateway you use, add GATEWAY_MERCHANT_ID in your project settings. For example if you are going to use zarinpal, You need to add ``ZARINPAL_MERCHANT_ID`` in your settings with value set to your zarinpal merchant ID or if you are using saman gateway, You need to add ``SAMAN_MERCHANT_ID`` in your settings.\n\n\n**Usage**\n\nThere is a payment model that app uses to handle payments. Every payment you create needs 5 initial parameters.\n\n1. ``price``: Price of the payment.\n\n2. ``description``: Short description about this payment. Necessary for some gateways such as Zarinpal.\n\n3. ``return_function``: A callable object (function) that will get called after payment is done with the payment object as it's input. It's optional and can be None.\n\n4. ``return_url``: A url for user to come back where he left off on your site. It's optional and can be None.\n\n5. ``login_required``: Must be True if user who is paying should be authenticated. If you're going to use this you have to set LOGIN_URL in project settings.\n\nTo create a payment:\n\n::\n\n from pardakht import handler\n result = handler.create_payment(\n price,\n description,\n return_function,\n return_url,\n login_required\n )\n\nThis will create a payment and returns a dict containing payment object and a link to pay it:\n\n::\n\n result['payment'] # Created payment object\n result['link'] # Link for paying this payment that you should redirect your user to\n\n**Extra notes**\n\nThis app handles all steps of payment including UI parts.\n\nIt uses semantic-ui so if you want to use it you need to serve app's static files.\n\nBut of course you can override templates to use your own templates with your own UI design.\n\n\n**Configurations**\n\nIf you are using ZarinGate to send users directly to the bank payment page, set `ZARINPAL_USE_ZARINGATE` to `True` in your project settings.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://www.github.com/ARKhoshghalb/django-pardakht", "keywords": "", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "django-pardakht", "package_url": "https://pypi.org/project/django-pardakht/", "platform": "", "project_url": "https://pypi.org/project/django-pardakht/", "project_urls": { "Homepage": "https://www.github.com/ARKhoshghalb/django-pardakht" }, "release_url": "https://pypi.org/project/django-pardakht/1.4.1/", "requires_dist": null, "requires_python": "", "summary": "Django app for connecting to Iranian payment gateways.", "version": "1.4.1" }, "last_serial": 3871022, "releases": { "1.1": [ { "comment_text": "", "digests": { "md5": "37bb950b9c30156289c275b328e674d1", "sha256": "926e33b3a17b6ce5ff956d451d745470ae8a609e905d14f090f1b9c847039b71" }, "downloads": -1, "filename": "django-pardakht-1.1.tar.gz", "has_sig": false, "md5_digest": "37bb950b9c30156289c275b328e674d1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2021935, "upload_time": "2018-05-17T04:24:03", "url": "https://files.pythonhosted.org/packages/c5/82/7dad4f2d7bf17a26761a4627b536ae844ffdd64912ed703841849c159825/django-pardakht-1.1.tar.gz" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "bd11ced7678f050ba13657bcb428dcc0", "sha256": "9628536b716d7a2023884a81edaa2a8c5d0cfb1314efe973b1f6514d01108636" }, "downloads": -1, "filename": "django-pardakht-1.2.tar.gz", "has_sig": false, "md5_digest": "bd11ced7678f050ba13657bcb428dcc0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2025207, "upload_time": "2018-04-02T03:42:15", "url": "https://files.pythonhosted.org/packages/67/82/24eae05b6dd9955d273d47cab3d91dc20ade472cb1b05d8edc560c2e8ed5/django-pardakht-1.2.tar.gz" } ], "1.3": [ { "comment_text": "", "digests": { "md5": "5e13ef0651e4cd1d3562a93dae2fee69", "sha256": "3b90903824e7d28c9e0eb80e62954d760107e13efad14cb16440c9a2cfacc97f" }, "downloads": -1, "filename": "django-pardakht-1.3.tar.gz", "has_sig": false, "md5_digest": "5e13ef0651e4cd1d3562a93dae2fee69", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2025214, "upload_time": "2018-04-02T03:51:18", "url": "https://files.pythonhosted.org/packages/27/47/c14961aaa39e9cb1664655bf81186b06d0f3ae2ade2e222333ce0001ecb0/django-pardakht-1.3.tar.gz" } ], "1.3.1": [ { "comment_text": "", "digests": { "md5": "004bbd147460e7cd5f43f293aa9e5ca1", "sha256": "24a50d6767ca1f4a5547df23b95e46b409f26830db1893868fca558411d0dcf4" }, "downloads": -1, "filename": "django-pardakht-1.3.1.tar.gz", "has_sig": false, "md5_digest": "004bbd147460e7cd5f43f293aa9e5ca1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2025294, "upload_time": "2018-04-02T05:05:27", "url": "https://files.pythonhosted.org/packages/7e/ec/9466df83f3bd507cf7b3adde32cf16746fec6d167621ced5086b5d5e8353/django-pardakht-1.3.1.tar.gz" } ], "1.3.2": [ { "comment_text": "", "digests": { "md5": "a15ac941a2a8bafbb415e4dfc015b0fc", "sha256": "a00fe9a88ceafc0813b28686c27114efc92b078267db0644ecdd0cef181709f5" }, "downloads": -1, "filename": "django-pardakht-1.3.2.tar.gz", "has_sig": false, "md5_digest": "a15ac941a2a8bafbb415e4dfc015b0fc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2025295, "upload_time": "2018-04-02T05:12:26", "url": "https://files.pythonhosted.org/packages/90/dd/75bacafa0fa605daa5ed73a1565696dc23ffc421ba979bb7f06710b9dd84/django-pardakht-1.3.2.tar.gz" } ], "1.3.3": [ { "comment_text": "", "digests": { "md5": "3fe243a3cd6e139b87ac02583d4e0fc5", "sha256": "a488e96bc1e6bd7c4c10be3db59609752dd272966a93016cbb1b7a8b37152c9f" }, "downloads": -1, "filename": "django-pardakht-1.3.3.tar.gz", "has_sig": false, "md5_digest": "3fe243a3cd6e139b87ac02583d4e0fc5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2025301, "upload_time": "2018-04-02T05:21:30", "url": "https://files.pythonhosted.org/packages/43/04/f457539f8172a2b205b15e912211eee875e295de0f8d55f48704bb162fe8/django-pardakht-1.3.3.tar.gz" } ], "1.3.4": [ { "comment_text": "", "digests": { "md5": "b1fd1d805e48f081e6e4e8ae809d4da2", "sha256": "a1eb32945eaf3bf74d397225a7d9aaba016e330e156b7b94074b5e500e968e32" }, "downloads": -1, "filename": "django-pardakht-1.3.4.tar.gz", "has_sig": false, "md5_digest": "b1fd1d805e48f081e6e4e8ae809d4da2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2025281, "upload_time": "2018-04-03T05:15:27", "url": "https://files.pythonhosted.org/packages/3f/31/4b05b6aad1a2491d1683d9ea593959b841eb2b49630227f8e430496c021e/django-pardakht-1.3.4.tar.gz" } ], "1.3.5": [ { "comment_text": "", "digests": { "md5": "7d7504dfd110aa72bd634b02f9f3249b", "sha256": "70112072ab69186c1e16fd7be100a966f6832ba275e6252d5c94e7f8aa0a2094" }, "downloads": -1, "filename": "django-pardakht-1.3.5.tar.gz", "has_sig": false, "md5_digest": "7d7504dfd110aa72bd634b02f9f3249b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2025288, "upload_time": "2018-04-03T05:23:25", "url": "https://files.pythonhosted.org/packages/c4/4f/b69b12798b85d312ce89cbf3014077d3373e9f5d4f9c9a1748e9edf82fe3/django-pardakht-1.3.5.tar.gz" } ], "1.3.6": [ { "comment_text": "", "digests": { "md5": "60e8d9c0bdd5f2b7485c5816693fc18b", "sha256": "7437aee079b78ea2ebffca26aff29bf3f440994bbe3ff10fa34b8a841a0f0285" }, "downloads": -1, "filename": "django-pardakht-1.3.6.tar.gz", "has_sig": false, "md5_digest": "60e8d9c0bdd5f2b7485c5816693fc18b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2025592, "upload_time": "2018-04-06T07:40:51", "url": "https://files.pythonhosted.org/packages/a6/25/a9f20b657f84f2d2b99952981e76bbd9f779777096461ce77379e8b62470/django-pardakht-1.3.6.tar.gz" } ], "1.4.0": [ { "comment_text": "", "digests": { "md5": "2c0c6220a9fff2fc7319d1a2f1458ae4", "sha256": "8e8aa26a50bb8e0b7ed98dd66223a8c34004ea02012c358bcfba837529536c2f" }, "downloads": -1, "filename": "django-pardakht-1.4.0.tar.gz", "has_sig": false, "md5_digest": "2c0c6220a9fff2fc7319d1a2f1458ae4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2025972, "upload_time": "2018-05-17T04:25:05", "url": "https://files.pythonhosted.org/packages/26/6b/2ead5e90b4c23d03eccdb2e9b8d5d8d24d2c19ed0c0f03798fb5d1e24b19/django-pardakht-1.4.0.tar.gz" } ], "1.4.1": [ { "comment_text": "", "digests": { "md5": "9638045f09458ba6c5815af23e0f869b", "sha256": "a1dadcada9d531c60dffe5b5014d8b974b2a93c2d7f3091fa9f8025ab9a7ffb3" }, "downloads": -1, "filename": "django-pardakht-1.4.1.tar.gz", "has_sig": false, "md5_digest": "9638045f09458ba6c5815af23e0f869b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2025963, "upload_time": "2018-05-17T04:49:22", "url": "https://files.pythonhosted.org/packages/88/dd/a8c2484c4db97603d0c40f8632da558365fa125d4c50a5680f5c862284b6/django-pardakht-1.4.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9638045f09458ba6c5815af23e0f869b", "sha256": "a1dadcada9d531c60dffe5b5014d8b974b2a93c2d7f3091fa9f8025ab9a7ffb3" }, "downloads": -1, "filename": "django-pardakht-1.4.1.tar.gz", "has_sig": false, "md5_digest": "9638045f09458ba6c5815af23e0f869b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2025963, "upload_time": "2018-05-17T04:49:22", "url": "https://files.pythonhosted.org/packages/88/dd/a8c2484c4db97603d0c40f8632da558365fa125d4c50a5680f5c862284b6/django-pardakht-1.4.1.tar.gz" } ] }