{ "info": { "author": "Shayegan Hooshyari", "author_email": "sh.hooshyari@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Framework :: Django :: 2.0", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "=============================\ndjango-zarinpal\n=============================\n\n.. image:: https://badge.fury.io/py/django-zarinpal.svg\n :target: https://badge.fury.io/py/django-zarinpal\n\n.. image:: https://travis-ci.org/glyphack/django-zarinpal.svg?branch=master\n :target: https://travis-ci.org/glyphack/django-zarinpal\n\n.. image:: https://codecov.io/gh/glyphack/django-zarinpal/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/glyphack/django-zarinpal\n\ndjango package for integrating payments with zarinpal\n\nDocumentation\n-------------\n\nThe full documentation is at https://glyphack.github.io/django-zarinpal/.\n\nQuickstart\n----------\n\nInstall django-zarinpal::\n\n pip install django-zarinpal\n\nAdd it to your `INSTALLED_APPS`:\n\n.. code-block:: python\n\n INSTALLED_APPS = (\n ...\n 'zarinpal.apps.ZarinpalConfig',\n ...\n )\n\nAdd django-zarinpal's URL patterns:\n\n.. code-block:: python\n\n from zarinpal import urls as zarinpal_urls\n\n\n urlpatterns = [\n ...\n url(r'^', include(zarinpal_urls)),\n ...\n ]\n\nFeatures\n--------\n\n- sending signal on verifying transaction to let other apps know about it\n\nHow to Use\n----------\nset these variables in your settings file:\n1.ZARINPAL_CALLBACK_URL(if you want to handle verification yourself explained here)\n\n2.ZARINPAL_SIMULATION\n\n3.ZARINPAL_MERCHANT_ID (you may leave it blank if you set the simulation to True\n\n\nyou have to use function start_transaction with a dictionary containing your transaction data like this:\n.. code-block:: python\n\n from django-zarinpal.utils import start_transaction\n\n data = {\n user: user object, #optional\n\n first_name: str, #optional\n\n last_name: str, #optional\n\n amount : int,\n\n callback_url, #optional\n\n description: str, #optional\n\n mobile: string, #optional\n\n email: string, #optional\n\n\n }\n\n start_transaction(data)\n\nIf you specify a callback_url in transaction data after completing transaction zarinpal will redirect user to the page you specified with two get arguments:\n\n1.order_number\n\n2.success: boolean\n\nIf you want to handle verifying transaction your self you can define your view and address it in settings with CALLBACK_URL you need to use function verify_transaction to check the transaction state it will return a transaction and you can check if it's successful or not.\nyou can leave it empty so package will take care of verifying transaction.\n\nTests\n--------\nRunning tests: ::\n\n python manage.py zarinpal.tests.test_transaction\n\nCredits\n-------\n\nTools used in rendering this package:\n\n* Cookiecutter_\n* `cookiecutter-djangopackage`_\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage\n\n\n\n\nHistory\n-------\n\n0.1.0 (2019-02-21)\n++++++++++++++++++\n\n* First release on PyPI.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/glyphack/django-zarinpal", "keywords": "django-zarinpal", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-zarinpal", "package_url": "https://pypi.org/project/django-zarinpal/", "platform": "", "project_url": "https://pypi.org/project/django-zarinpal/", "project_urls": { "Homepage": "https://github.com/glyphack/django-zarinpal" }, "release_url": "https://pypi.org/project/django-zarinpal/0.1.6/", "requires_dist": null, "requires_python": "", "summary": "django package for integrating payments with zarinpal", "version": "0.1.6" }, "last_serial": 5201922, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "cc245a8c04a71ced70f2b42cc8b6fa36", "sha256": "133963133086a85daf6bfcdaa9d5e90346d4e6b79f84cbc7ad16177de4150aca" }, "downloads": -1, "filename": "django-zarinpal-0.1.1.tar.gz", "has_sig": false, "md5_digest": "cc245a8c04a71ced70f2b42cc8b6fa36", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10723, "upload_time": "2019-04-25T14:30:55", "url": "https://files.pythonhosted.org/packages/00/f4/6ff9b411aafd7af4b5d793336f7665eb534fa5062e59e905735ec456cea7/django-zarinpal-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "1f003dd17814f529d6dd8a1068ed884a", "sha256": "2df492ee7980398e7f8c3603958ac454f9e3ebf79d99164d48c92f1262b2395d" }, "downloads": -1, "filename": "django-zarinpal-0.1.2.tar.gz", "has_sig": false, "md5_digest": "1f003dd17814f529d6dd8a1068ed884a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10700, "upload_time": "2019-04-25T14:33:47", "url": "https://files.pythonhosted.org/packages/5e/52/ee9e5a2899b3e1f8e90432557adad2d2e454cee19a207367b58217540ac8/django-zarinpal-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "c78ab20bdc0491ad70ab9c406768721a", "sha256": "6aa65acc10a750b174b3482e3d865b871678e40bba1c3a6cf199f41f5984ca9f" }, "downloads": -1, "filename": "django-zarinpal-0.1.3.tar.gz", "has_sig": false, "md5_digest": "c78ab20bdc0491ad70ab9c406768721a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9398, "upload_time": "2019-04-26T14:26:57", "url": "https://files.pythonhosted.org/packages/a1/41/d783611ec3f160741db0fcad3b30d04bcda80ad7e1382c3d1be05a9ced4c/django-zarinpal-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "b274927677c9d90ef10aecc373f14c60", "sha256": "c3b6321e0b511877055b3379f2a5e9f509e334db947d67c38b21a1159427c48e" }, "downloads": -1, "filename": "django-zarinpal-0.1.4.tar.gz", "has_sig": false, "md5_digest": "b274927677c9d90ef10aecc373f14c60", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9392, "upload_time": "2019-04-26T14:32:45", "url": "https://files.pythonhosted.org/packages/04/b5/e72fc2cceca220c357a4e0917a369a71ac2384a412b9b9b343d4fa19a5f6/django-zarinpal-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "be742abc754010eac8330695bac8ab9d", "sha256": "b54b3551d836df8978dc56dc0b2c633f1ff6f8325bbfc5681df39471551866f7" }, "downloads": -1, "filename": "django-zarinpal-0.1.5.tar.gz", "has_sig": false, "md5_digest": "be742abc754010eac8330695bac8ab9d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9536, "upload_time": "2019-04-27T16:24:04", "url": "https://files.pythonhosted.org/packages/54/f0/512cd0969f70b00918535624a99fa71d2bc0057d190704e66d385658daa2/django-zarinpal-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "be211e4ed3c6c271e00ab2fa9d083959", "sha256": "c1d3d5ea282eec35ea19bb76c710a6e1fcb25b103232c039335b47c218737ce0" }, "downloads": -1, "filename": "django-zarinpal-0.1.6.tar.gz", "has_sig": false, "md5_digest": "be211e4ed3c6c271e00ab2fa9d083959", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9754, "upload_time": "2019-04-29T07:18:31", "url": "https://files.pythonhosted.org/packages/97/b9/3bc089a63869de200e069208e251efd25eb23c07476f2a9e3f0e99ae4bf7/django-zarinpal-0.1.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "be211e4ed3c6c271e00ab2fa9d083959", "sha256": "c1d3d5ea282eec35ea19bb76c710a6e1fcb25b103232c039335b47c218737ce0" }, "downloads": -1, "filename": "django-zarinpal-0.1.6.tar.gz", "has_sig": false, "md5_digest": "be211e4ed3c6c271e00ab2fa9d083959", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9754, "upload_time": "2019-04-29T07:18:31", "url": "https://files.pythonhosted.org/packages/97/b9/3bc089a63869de200e069208e251efd25eb23c07476f2a9e3f0e99ae4bf7/django-zarinpal-0.1.6.tar.gz" } ] }