{ "info": { "author": "Haotong Chen", "author_email": "hereischen@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python :: 2.7", "Topic :: Software Development :: Build Tools" ], "description": "# JDPAY\u4eac\u4e1c\u652f\u4ed8\n------\n##Overview\nThis is an unofficial python JingDong pay API, it contains 4 main classes:\n> * PayAccount\n> * PayRequest \n> * RefundRequest\n> * QueryRequest\n> * Notification\n> * DownloadBill\n\n\n------\n\nInstallation\n------------\n\nInstall using pip:\n\n```bash\npip install jdpay\n```\nor you can refer to https://github.com/hereischen/JDPAY/dist\ndownload the tar file.\n\nAPI\n---\n**PayAccount**\nIt allows switching between differnt payment account methods such as debit card only (DO) or debit and credit card (DC).\n``` python\nfrom jdpay import PayAccount\n\npay_account = PayAccount(DC)\n\n```\npay acoount will be initialised to a serious settings that support both debit card and credit card.\n\n\n**PayRequest**\nPost payment data\n``` python\nfrom jdpay import PayRequest\n\njd_pay = PayRequest(pay_account)\nform_data = jd_pay.post(pay_params)\n\n```\n\n**QueryRequest**\nThis class handles paymment queries.\n``` python\nfrom jdpay import QueryRequest\n\nquery_request = QueryRequest(pay_account)\n\n```\n**RefundRequest**\nThis class handles refund requests.\n``` python\nfrom jdpay import RefundRequest\n\nrefund_request = RefundRequest(pay_account)\n\n```\n\n**Notification**\nThis class handls notifications send from JingDong. \n``` python\nreturn_dict, trade_dict = Notification(notification_account).get_notification(resp)\n\n```\n\n**DownloadBill**\n``` python\nbill = DownloadBill().get_bill(bill_date='2015-07-08', suffix='_0430')\n```\n\n------\nThat's it!\n\n\nChangelog\n==============================\n1.1.6 - Auge.14, 2015\n------------------------------\n- a bug fixed in query fixed\n\n1.1.5 - Jul.17, 2015\n------------------------------\n- Added date_validation() in DownloadBill()\n\n\n1.1.4 - Jul.10, 2015\n------------------------------\n- Fixed a bug in Notification()\n\n1.1.3 - Jul.09, 2015\n------------------------------\n\n- Updated DownloadBill(object).get_bill() for bill downloading\n\n1.1.2 - Jul.08, 2015\n------------------------------\n\n- Added class DownloadBill(object) for bill downloading.\n\n1.1.1 - Jun.30, 2015\n------------------------------\n\n- Changed get_notification method.\n It will return a more detailed notification dict \n containning all the information provided.\n\n1.1 - Jun.26, 2015\n------------------------------\n\n- Changed verify_merchant_sign_parse_response method.\n It will raise exceptions if get date faild.\n and the return res will macth JD's logic.\n\n1.0 - Jun.15, 2015\n------------------------------\n\n- Initail commit", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/hereischen/jdpay", "keywords": null, "license": "BSD License", "maintainer": null, "maintainer_email": null, "name": "jdpay", "package_url": "https://pypi.org/project/jdpay/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/jdpay/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/hereischen/jdpay" }, "release_url": "https://pypi.org/project/jdpay/1.1.6/", "requires_dist": null, "requires_python": null, "summary": "This is an unofficial python JingDong pay API.", "version": "1.1.6" }, "last_serial": 1677150, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "f41b07e3f986f0f8a75ca28134266733", "sha256": "310f1273fc7e89037699edcb5535982beaa91a5273352f3604b92ca3da684d41" }, "downloads": -1, "filename": "jdpay-1.0.tar.gz", "has_sig": false, "md5_digest": "f41b07e3f986f0f8a75ca28134266733", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 249914, "upload_time": "2015-06-15T10:57:43", "url": "https://files.pythonhosted.org/packages/18/df/479738ea907369eecfc5bafad5bcd1d610a4e7ac7483e956218d479e8606/jdpay-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "cd9f00beb8556fcf43d82056a76d8051", "sha256": "3b4529a66f7aa006d43c97b6ed207f9951c93e7295927a0b60e496bebb526e88" }, "downloads": -1, "filename": "jdpay-1.1.tar.gz", "has_sig": false, "md5_digest": "cd9f00beb8556fcf43d82056a76d8051", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 250210, "upload_time": "2015-06-26T10:06:20", "url": "https://files.pythonhosted.org/packages/8a/94/2e6fb6bd78bbfef09e53b430e96afdb68762938e6258199394ab400f15b3/jdpay-1.1.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "4e424ea93c3f7c811282d3996f4b97ff", "sha256": "c652dd17c7353146f7646899457b7a7b15dee015763ebbb4e65427ec85bdc947" }, "downloads": -1, "filename": "jdpay-1.1.1.tar.gz", "has_sig": false, "md5_digest": "4e424ea93c3f7c811282d3996f4b97ff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 250485, "upload_time": "2015-06-30T10:00:08", "url": "https://files.pythonhosted.org/packages/b0/68/b1c85e2c8fd8351a8fb807d7928a2c4c0d0f80a134b0a46e605cf91a5a19/jdpay-1.1.1.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "e194285e4d4271c925c5a7be2e2e4729", "sha256": "deda09152540ca580e2dffbecced3dd406138915e25ea8892348c0d5115ce8d4" }, "downloads": -1, "filename": "jdpay-1.1.2.tar.gz", "has_sig": false, "md5_digest": "e194285e4d4271c925c5a7be2e2e4729", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 251948, "upload_time": "2015-07-08T10:13:24", "url": "https://files.pythonhosted.org/packages/19/35/79e21583a213226d872d20136265b8ef9317e319e497b3e47835ea628976/jdpay-1.1.2.tar.gz" } ], "1.1.3": [ { "comment_text": "", "digests": { "md5": "58272b4bdf95c95277e7cb7510ef83c0", "sha256": "ee2d298be350249168e4b799185e48b58206287216b1ab67f5c434c0fc974f05" }, "downloads": -1, "filename": "jdpay-1.1.3.tar.gz", "has_sig": false, "md5_digest": "58272b4bdf95c95277e7cb7510ef83c0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 251807, "upload_time": "2015-07-09T09:35:52", "url": "https://files.pythonhosted.org/packages/2e/67/76dd5447f542e7ccb08a1b9806aac24a93a76f9f33ad993893cf523eeb17/jdpay-1.1.3.tar.gz" } ], "1.1.4": [ { "comment_text": "", "digests": { "md5": "fdbaac4993ede69dd7a842798769832d", "sha256": "dab47e50862b30b5b4ad30dbc1e3559371c04c82fbbf1af9c624b6aad7132576" }, "downloads": -1, "filename": "jdpay-1.1.4.tar.gz", "has_sig": false, "md5_digest": "fdbaac4993ede69dd7a842798769832d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 251905, "upload_time": "2015-07-10T08:35:10", "url": "https://files.pythonhosted.org/packages/94/f5/0950292cbfbed2d0556552b9b711568ca96582044f3b6e99f68ffd374bd8/jdpay-1.1.4.tar.gz" } ], "1.1.5": [ { "comment_text": "", "digests": { "md5": "f1622b668952d64cb951ba49ef032b7e", "sha256": "28682ea05640a28e082d24889c6d6a991533407afcf05915b4fe365c0208fae1" }, "downloads": -1, "filename": "jdpay-1.1.5.tar.gz", "has_sig": false, "md5_digest": "f1622b668952d64cb951ba49ef032b7e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 252113, "upload_time": "2015-07-17T06:51:42", "url": "https://files.pythonhosted.org/packages/53/36/0f6a43ce3d05049a982389da926b7bdb7817569daef0522f3112d78a63d4/jdpay-1.1.5.tar.gz" } ], "1.1.6": [ { "comment_text": "", "digests": { "md5": "9272c90c225a265dc9ebd3709081732b", "sha256": "b627efb2a535ad2975d2de3235bd4b668337ec07a62f9612ae0efd8f64c7134e" }, "downloads": -1, "filename": "jdpay-1.1.6.tar.gz", "has_sig": false, "md5_digest": "9272c90c225a265dc9ebd3709081732b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 251774, "upload_time": "2015-08-14T08:10:57", "url": "https://files.pythonhosted.org/packages/79/f5/37c95800b4641316f0aa57cfd272e99b648a140755a66248a03b7de3988b/jdpay-1.1.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9272c90c225a265dc9ebd3709081732b", "sha256": "b627efb2a535ad2975d2de3235bd4b668337ec07a62f9612ae0efd8f64c7134e" }, "downloads": -1, "filename": "jdpay-1.1.6.tar.gz", "has_sig": false, "md5_digest": "9272c90c225a265dc9ebd3709081732b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 251774, "upload_time": "2015-08-14T08:10:57", "url": "https://files.pythonhosted.org/packages/79/f5/37c95800b4641316f0aa57cfd272e99b648a140755a66248a03b7de3988b/jdpay-1.1.6.tar.gz" } ] }