{ "info": { "author": "yahoowallet", "author_email": "fastpay-help@mail.yahoo.co.jp", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "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.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Internet :: WWW/HTTP" ], "description": "FastPay SDK for Python\n======================\n\nFastPay\u3092Python\u3067\u7c21\u5358\u306b\u5229\u7528\u3059\u308b\u305f\u3081\u306eSDK\u3067\u3059\u3002\n\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\n------------\n\npip\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u884c\u3044\u307e\u3059\n\n.. code-block:: bash\n\n $ pip install fastpay\n\n\n\u4f7f\u3044\u65b9\n------\n\nFastPay\u3067\u306f\u30af\u30ec\u30b8\u30c3\u30c8\u30ab\u30fc\u30c9\u60c5\u5831\u306f\u76f4\u63a5\u6271\u308f\u305a\u3001FastPay\u5074\u3067\u30c8\u30fc\u30af\u30f3\u5316\u3057\u305f\u3082\u306e\u3092\u4f7f\u3063\u3066\u5b89\u5168\u306b\u6c7a\u6e08\u3092\u884c\u3044\u307e\u3059\u3002\n\u30c8\u30fc\u30af\u30f3\u5316\u306a\u3069\u5168\u4f53\u7684\u306a\u6d41\u308c\u306b\u3064\u3044\u3066\u306f\u3001 `FastPay\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8[\u652f\u6255\u3044\u30d5\u30ed\u30fc] `_ \u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002\n\n\u8ab2\u91d1\n~~~~\n\n\u8a73\u7d30\u306b\u3064\u3044\u3066\u306fFastPay\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8 `\u65b0\u898f\u6c7a\u6e08\u306e\u4f5c\u6210 `_ \u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002\n\n.. code-block:: python\n\n import fastpay\n\n # fastpay.js\u3067\u53d6\u5f97\u3057\u307e\u3059\u3002\"fastpayToken\"\u3068\u3044\u3046\u30d1\u30e9\u30e1\u30fc\u30bf\u3067hidden\u306einput\u306b\u3066\u9001\u4fe1\u3055\u308c\u307e\u3059\u3002\n token = \"CARD_TOKEN\"\n\n client = fastpay.FastPay(\"\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\")\n\n try:\n charge = client.charge.create(\n amount=100, # \u91d1\u984d\n card=token, # fastpay.js\u3067\u53d6\u5f97\u3057\u305f\u30c8\u30fc\u30af\u30f3\n description=\"fastpay@example.com\", # \u8a73\u7d30\u60c5\u5831\u3002\u30d5\u30ea\u30fc\u30d5\u30a9\u30fc\u30e0\u3067\u3059\n capture=False # \u78ba\u5b9a\u3092\u884c\u308f\u306a\u3044\u5834\u5408False\u3002\u540c\u6642\u78ba\u5b9a\u306e\u5834\u5408\u306f\u7701\u7565\u307e\u305f\u306fTrue\u3092\u6307\u5b9a\u3059\u308b\n )\n # \u4f8b\u5916\u304c\u4e0a\u304c\u3089\u306a\u304b\u3063\u305f\u5834\u5408\u3001\u8ab2\u91d1\u6210\u529f\n print(\"\u6ce8\u6587\u5b8c\u4e86 ID: %s\" % charge.id) # -> \u6ce8\u6587ID\u8868\u793a\n except fastpay.CardError as e:\n # \u30ab\u30fc\u30c9\u4e0e\u4fe1\u30a8\u30e9\u30fc\u3002\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u518d\u5ea6\u753b\u9762\u3092\u8868\u793a\u306a\u3069\u884c\u3046\n if e.code == FastPayError.CARD_DECLINED:\n print(\"\u30ab\u30fc\u30c9\u6c7a\u6e08\u306b\u5931\u6557\u3057\u307e\u3057\u305f\u3002\uff08\u30aa\u30fc\u30bd\u30ea\u6642\u306e\u30a8\u30e9\u30fc\uff09\")\n elif e.code == FastPayError.INCORRECT_CVC:\n print(\"\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b3\u30fc\u30c9\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002\uff08\u30aa\u30fc\u30bd\u30ea\u6642\u306e\u30a8\u30e9\u30fc\uff09\")\n # \u4ed6\u306e\u30b3\u30fc\u30c9\u306f https://fastpay.yahoo.co.jp/docs/error \u3092\u53c2\u7167\n except fastpay.FastPayError as e:\n print(\"\u30b7\u30b9\u30c6\u30e0\u30a8\u30e9\u30fc %s\" % str(e))\n\n\u78ba\u5b9a\n~~~~\n\n\u8a73\u7d30\u306b\u3064\u3044\u3066\u306fFastPay\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8 `\u6c7a\u6e08\u306e\u78ba\u5b9a `_ \u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002\n\n.. code-block:: python\n\n import fastpay\n\n client = fastpay.FastPay(\"\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\")\n\n try:\n charge = client.charge.retrieve(\"\u5bfe\u8c61\u306echarge_id\")\n # \u78ba\u5b9a\u3092\u884c\u3046\n charge.capture()\n # \u4f8b\u5916\u304c\u4e0a\u304c\u3089\u306a\u304b\u3063\u305f\u5834\u5408\u3001\u78ba\u5b9a\u6210\u529f\n print(\"\u78ba\u5b9a\u6210\u529f\")\n except fastpay.FastPayError as e:\n print(\"\u30b7\u30b9\u30c6\u30e0\u30a8\u30e9\u30fc %s\" % str(e))\n\n\u8fd4\u91d1\n~~~~\n\n\u8a73\u7d30\u306b\u3064\u3044\u3066\u306fFastPay\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8 `\u6255\u3044\u623b\u3057\u51e6\u7406 `_ \u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002\n\n.. code-block:: python\n\n import fastpay\n\n client = fastpay.FastPay(\"\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\")\n\n try:\n charge = client.charge.retrieve(\"\u5bfe\u8c61\u306echarge_id\")\n # \u78ba\u5b9a\u3092\u884c\u3046\u3002\u5f15\u6570\u3092\u4e0e\u3048\u308b\u3053\u3068\u3067\u90e8\u5206\u8fd4\u91d1\u3082\u53ef\u80fd\n charge.refund()\n # \u4f8b\u5916\u304c\u4e0a\u304c\u3089\u306a\u304b\u3063\u305f\u5834\u5408\u3001\u6255\u3044\u623b\u3057\u6210\u529f\n print(\"\u6255\u3044\u623b\u3057\u6210\u529f\")\n except fastpay.FastPayError as e:\n print(\"\u30b7\u30b9\u30c6\u30e0\u30a8\u30e9\u30fc %s\" % str(e))\n\n\u7d99\u7d9a\u8ab2\u91d1\u306e\u958b\u59cb\n~~~~~~~~~~~~~~\n\n\u7d99\u7d9a\u8ab2\u91d1\u306b\u3064\u3044\u3066\u306f\u307e\u305a\u306fFastPay\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8 `\u7d99\u7d9a\u8ab2\u91d1\u3068\u306f `_ \u3092\u3054\u3089\u3093\u304f\u3060\u3055\u3044\u3002\n\n.. code-block:: python\n\n import fastpay\n\n client = fastpay.FastPay(\"\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\")\n\n try:\n subscription = client.subscription.activate(\"\u5bfe\u8c61\u306esubscription_id\")\n print(\"\u7d99\u7d9a\u8ab2\u91d1\u958b\u59cb\u6210\u529f\")\n except fastpay.FastPayError as e:\n print(\"\u30b7\u30b9\u30c6\u30e0\u30a8\u30e9\u30fc %s\" % str(e))\n\n\u7d99\u7d9a\u8ab2\u91d1\u306e\u505c\u6b62\n~~~~~~~~~~~~~~\n\n\u7d99\u7d9a\u505c\u6b62\u306b\u3064\u3044\u3066\u3082FastPay\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8 `\u7d99\u7d9a\u8ab2\u91d1\u3068\u306f `_ \u3092\u3054\u3089\u3093\u304f\u3060\u3055\u3044\u3002\n\n.. code-block:: python\n\n import fastpay\n\n client = fastpay.FastPay(\"\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\")\n\n try:\n subscription = client.subscription.cancel(\"\u5bfe\u8c61\u306esubscription_id\")\n print(\"\u7d99\u7d9a\u8ab2\u91d1\u505c\u6b62\u6210\u529f\")\n except fastpay.FastPayError as e:\n print(\"\u30b7\u30b9\u30c6\u30e0\u30a8\u30e9\u30fc %s\" % str(e))\n\nLicense\n-------\n\nMIT\u30e9\u30a4\u30bb\u30f3\u30b9\u306b\u3066\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002\u8a73\u3057\u304f\u306fLICENSE\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://fastpay.yahoo.co.jp", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "fastpay", "package_url": "https://pypi.org/project/fastpay/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/fastpay/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://fastpay.yahoo.co.jp" }, "release_url": "https://pypi.org/project/fastpay/1.0.0/", "requires_dist": null, "requires_python": null, "summary": "fastpay sdk for python", "version": "1.0.0" }, "last_serial": 1505726, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "4560254dac69a0c8e6716abd74d27e4f", "sha256": "a878baa0c2099afb7fd8d17d3ede079aa06b3e26bb152e834cea1f361576398e" }, "downloads": -1, "filename": "fastpay-1.0.0.tar.gz", "has_sig": false, "md5_digest": "4560254dac69a0c8e6716abd74d27e4f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9357, "upload_time": "2015-04-15T02:52:53", "url": "https://files.pythonhosted.org/packages/9d/93/e15ed27860d95386fa98b573e6887b7c493ee74398c1a5cffccb98bb784c/fastpay-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4560254dac69a0c8e6716abd74d27e4f", "sha256": "a878baa0c2099afb7fd8d17d3ede079aa06b3e26bb152e834cea1f361576398e" }, "downloads": -1, "filename": "fastpay-1.0.0.tar.gz", "has_sig": false, "md5_digest": "4560254dac69a0c8e6716abd74d27e4f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9357, "upload_time": "2015-04-15T02:52:53", "url": "https://files.pythonhosted.org/packages/9d/93/e15ed27860d95386fa98b573e6887b7c493ee74398c1a5cffccb98bb784c/fastpay-1.0.0.tar.gz" } ] }