{ "info": { "author": "Ryan Pineo", "author_email": "ry@tsl.io", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4" ], "description": "itunes-iap\n~~~~~~~~~~\n\n.. image:: https://travis-ci.org/silverlogic/itunes-iap.svg?branch=master\n :target: https://travis-ci.org/silverlogic/itunes-iap\n\nQuick example\n-------------\n\nCreate request to create a request to itunes verify api.\n\n >>> from itunesiap import Request, InvalidReceipt\n >>> request = Request(raw_data) # base64-encoded data\n >>> try:\n >>> receipt = request.verify()\n >>> except InvalidReceipt as e:\n >>> print 'invalid receipt'\n >>> print receipt.product_id # any other values are available as property!\n\nPractical useful values are: product_id, original_transaction_id, quantity, unique_identifier\n\nQuick example with password (Apple Shared Secret)\n-------------\n\nCreate request to create a request to itunes verify api.\n\n >>> from itunesiap import Request, InvalidReceipt\n >>> request = Request(raw_data, password) # base64-encoded data\n >>> try:\n >>> receipt = request.verify()\n >>> except InvalidReceipt as e:\n >>> print 'invalid receipt'\n >>> print receipt.product_id # any other values are available as property!\n >>> print receipt.latest_receipt # Get the latest receipt returned by Apple\n\n\nVerification policy\n-------------------\n\nSet verification mode for production or sandbox api. Review mode also available for appstore review.\n\n >>> from itunesiap import Request\n >>> request = Request(raw_data)\n >>> with request.verification_mode('review'): # enable both production and sandbox for appstore review. 'production', 'sandbox' or 'review'\n >>> receipt = request.verify()\n\nWorkflow Shortcut\n-----------------\n\n >>> def test_paid(original_transaction_id):\n >>> if db.contains(original_transaction_id):\n >>> raise CustomException # custom exception\n >>>\n >>> import itunesiap\n >>> try:\n >>> response = itunesiap.verify(raw_data, test_paid)\n >>> except itunesiap.RequestError:\n >>> pass\n >>> except CustomException:\n >>> pass\n >>> # response is instance of `itunesiap.core.Response`\n\n\nPassword support is merged from https://github.com/sportsy/itunes-iap", "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/silverlogic/itunes-iap", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "tsl-itunes-iap", "package_url": "https://pypi.org/project/tsl-itunes-iap/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/tsl-itunes-iap/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/silverlogic/itunes-iap" }, "release_url": "https://pypi.org/project/tsl-itunes-iap/0.6.6/", "requires_dist": null, "requires_python": null, "summary": "Itunes In-app purchase verification api.", "version": "0.6.6" }, "last_serial": 1702189, "releases": { "0.6.6": [ { "comment_text": "", "digests": { "md5": "bf943f37e7eb40c39d6d2ee24e1bab2e", "sha256": "a94d69a9a8d344daa4db69e39bf6b021a73d7ffd086217bae15413ec664edeb1" }, "downloads": -1, "filename": "tsl-itunes-iap-0.6.6.tar.gz", "has_sig": false, "md5_digest": "bf943f37e7eb40c39d6d2ee24e1bab2e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5379, "upload_time": "2015-08-31T21:01:16", "url": "https://files.pythonhosted.org/packages/fd/ed/3f30dd2f53faa0c95dc616278cdf55764ce3b4f3ada8275243b2e53eac3c/tsl-itunes-iap-0.6.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bf943f37e7eb40c39d6d2ee24e1bab2e", "sha256": "a94d69a9a8d344daa4db69e39bf6b021a73d7ffd086217bae15413ec664edeb1" }, "downloads": -1, "filename": "tsl-itunes-iap-0.6.6.tar.gz", "has_sig": false, "md5_digest": "bf943f37e7eb40c39d6d2ee24e1bab2e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5379, "upload_time": "2015-08-31T21:01:16", "url": "https://files.pythonhosted.org/packages/fd/ed/3f30dd2f53faa0c95dc616278cdf55764ce3b4f3ada8275243b2e53eac3c/tsl-itunes-iap-0.6.6.tar.gz" } ] }