{ "info": { "author": "Anshul Sharma", "author_email": "anshul.jmi@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Topic :: Software Development", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# Affirm Python SDK\n\nAffirm Python SDK is a client library to interact with [Affirm](https://www.affirm.com/). For API reference: https://docs.affirm.com/Integrate_Affirm/Direct_API/Affirm_API_Reference\n\nAffirm helps customers to pay over time for things they want to buy. The customers are in control of how long you get to make monthly payments. They do the approval process in minutes. This client will help you integrate with Affirm.\n\n\n# Usage\n## Client Creation\n\n from affirm import Client\n client = Client(auth=(, ))\n\n## Performing Authorize\n\n from affirm import Client\n client = Client(auth=(, ))\n resp = client.charge.create(data={\"checkout_token\":, \"order_id\": )\n\n## Performing Capture\n\n from affirm import Client\n client = Client(auth=(, ))\n resp = client.charge.capture(charge_id = , order_id=)\n \n## Performing Refund\n\n from affirm import Client\n client = Client(auth=(, ))\n resp = client.charge.capture(charge_id = , order_id= )\n\n## Perform Update\n\n from affirm import Client\n client = Client(auth=(, ))\n resp = client.charge.update(charge_id = , order_id\": )\n\n## Perform Void\n\n from affirm import Client\n client = Client(auth=(, ))\n resp = client.charge.void(charge_id=, order_id=)\n\n## Using the client for Production(or live)\nThe only change you need to make pass a `prod` keyward while to client creation step.\n\n from affirm import Client\n client = Client(auth=(, ), prod=True)\n\n \nIf you have any questions please shoot a mail to anshul[dot]jmi[at]gmail[dot]com.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/raun/affirm-python-sdk/archive/v_07.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/raun/affirm-python-sdk", "keywords": "AFFIRM,SDK,CLIENT,INTEGRATION", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "affirm-pay", "package_url": "https://pypi.org/project/affirm-pay/", "platform": "", "project_url": "https://pypi.org/project/affirm-pay/", "project_urls": { "Download": "https://github.com/raun/affirm-python-sdk/archive/v_07.tar.gz", "Homepage": "https://github.com/raun/affirm-python-sdk" }, "release_url": "https://pypi.org/project/affirm-pay/0.7/", "requires_dist": null, "requires_python": "", "summary": "Python Client for Affirm", "version": "0.7" }, "last_serial": 5237049, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "5d2b123bc8d70f0c1fde44cfd2e54e1d", "sha256": "4033a6dd99f4891fafcf97b72bb00e83974134071cff70881eb739226bbda9e5" }, "downloads": -1, "filename": "affirm-pay-0.1.tar.gz", "has_sig": false, "md5_digest": "5d2b123bc8d70f0c1fde44cfd2e54e1d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2445, "upload_time": "2019-04-21T15:45:14", "url": "https://files.pythonhosted.org/packages/c9/4b/6b1bc63d2a43d8d49ee21dbab65dbf6cca832cf27f7e1109df506b18e145/affirm-pay-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "38a5f2e35a6db67fc02b281f38318ab8", "sha256": "1b3a45eb8f5d1f924b9b1e478de4a465736251e0b75d765e1d484071041109b9" }, "downloads": -1, "filename": "affirm-pay-0.2.tar.gz", "has_sig": false, "md5_digest": "38a5f2e35a6db67fc02b281f38318ab8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2377, "upload_time": "2019-04-29T15:26:47", "url": "https://files.pythonhosted.org/packages/02/b4/f207a0f6066af8ac112dd6b803255c6f4026ca9bb3134a298985360df338/affirm-pay-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "77c2211c8a796bc4d3921fbf31a11448", "sha256": "578c6b16fd55f4ff99e98dc3971ce7ba718ce4273120259b317fb60c69a2ce0b" }, "downloads": -1, "filename": "affirm-pay-0.3.tar.gz", "has_sig": false, "md5_digest": "77c2211c8a796bc4d3921fbf31a11448", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2385, "upload_time": "2019-05-03T04:19:17", "url": "https://files.pythonhosted.org/packages/91/da/32ede11a18709fe2e055f038cdd3042a8d1a018b8bf3db9ae3efd6e390bd/affirm-pay-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "5674de5edaa38908bef30f488770c809", "sha256": "238939f791b94eb01b00e71fc8c662d499db57d123be2a7720a9064e01e40a3c" }, "downloads": -1, "filename": "affirm-pay-0.4.tar.gz", "has_sig": false, "md5_digest": "5674de5edaa38908bef30f488770c809", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4769, "upload_time": "2019-05-03T04:28:02", "url": "https://files.pythonhosted.org/packages/e8/f8/2aa039cac6e78503a5e68eadb41d98658c8689dbdd14ffa956ac47cf120c/affirm-pay-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "4d801f5b71837366f030baa103aff21c", "sha256": "cd0ac92265ed1ebcf356f4c85a4450ab40fb7c505776402181badab4a5065154" }, "downloads": -1, "filename": "affirm-pay-0.5.tar.gz", "has_sig": false, "md5_digest": "4d801f5b71837366f030baa103aff21c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4784, "upload_time": "2019-05-06T14:01:04", "url": "https://files.pythonhosted.org/packages/6e/5c/750557814b28c2e1cf71bd64230199831f719d0ffed4e6cc569e69996344/affirm-pay-0.5.tar.gz" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "53a22c5a7e1dca0562e39092fc9ee8a3", "sha256": "350eed28b4752babf3703aaa47dbeb5bea9e0c563941affe5baf485c3d7d1f9a" }, "downloads": -1, "filename": "affirm-pay-0.6.tar.gz", "has_sig": false, "md5_digest": "53a22c5a7e1dca0562e39092fc9ee8a3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5012, "upload_time": "2019-05-06T14:07:38", "url": "https://files.pythonhosted.org/packages/57/63/b95499591588a3171707d1e70ff89deafc0134e7517662be3d80f629f49a/affirm-pay-0.6.tar.gz" } ], "0.7": [ { "comment_text": "", "digests": { "md5": "d198e9b40d3b07393529fd52034785fe", "sha256": "f36f7f8adcfeb9d869a075c268a28e6242529b063710989abcbcfeed5dff1c21" }, "downloads": -1, "filename": "affirm-pay-0.7.tar.gz", "has_sig": false, "md5_digest": "d198e9b40d3b07393529fd52034785fe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5012, "upload_time": "2019-05-07T08:33:43", "url": "https://files.pythonhosted.org/packages/c4/a0/e1363800a7703c74e1e369df8f93bbc8537ef4efc3a4bd5740b6e0120352/affirm-pay-0.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d198e9b40d3b07393529fd52034785fe", "sha256": "f36f7f8adcfeb9d869a075c268a28e6242529b063710989abcbcfeed5dff1c21" }, "downloads": -1, "filename": "affirm-pay-0.7.tar.gz", "has_sig": false, "md5_digest": "d198e9b40d3b07393529fd52034785fe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5012, "upload_time": "2019-05-07T08:33:43", "url": "https://files.pythonhosted.org/packages/c4/a0/e1363800a7703c74e1e369df8f93bbc8537ef4efc3a4bd5740b6e0120352/affirm-pay-0.7.tar.gz" } ] }