Name | mercadopago JSON |
Version |
2.2.3
JSON |
| download |
home_page | None |
Summary | Mercadopago SDK module for Payments integration |
upload_time | 2024-06-27 18:06:53 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.7 |
license | MIT License Copyright (c) 2021 MercadoPago Developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
api
mercadopago
checkout
payment in sdk integration
lts
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Mercado Pago SDK for Python
[![PyPI](https://img.shields.io/pypi/v/mercadopago.svg)](https://pypi.python.org/pypi/mercadopago)
[![PyPI Downloads](https://img.shields.io/pypi/dm/mercadopago.svg)](https://pypi.python.org/pypi/mercadopago)
[![APM](https://img.shields.io/apm/l/vim-mode)](https://github.com/mercadopago/sdk-python)
This library provides developers with a simple set of bindings to help you integrate Mercado Pago API to a website and start receiving payments.
## 💡 Requirements
Python 3 or higher.
## 📲 Installation
Run ```pip3 install mercadopago```
## 🌟 Getting Started
First time using Mercado Pago? Create your [Mercado Pago account](https://www.mercadopago.com).
Copy your `Access Token` in the [credentials panel](https://www.mercadopago.com/developers/panel/credentials) and replace the text `YOUR_ACCESS_TOKEN` with it.
### Simple usage
```python
import mercadopago
sdk = mercadopago.SDK("YOUR_ACCESS_TOKEN")
request_options = mercadopago.config.RequestOptions()
request_options.custom_headers = {
'x-idempotency-key': '<SOME_UNIQUE_VALUE>'
}
payment_data = {
"transaction_amount": 100,
"token": "CARD_TOKEN",
"description": "Payment description",
"payment_method_id": 'visa',
"installments": 1,
"payer": {
"email": 'test_user_123456@testuser.com'
}
}
result = sdk.payment().create(payment_data, request_options)
payment = result["response"]
print(payment)
```
### Per-request configuration
All methods that make API calls accept an optional `RequestOptions` object. This can be used to configure some special options of the request, such as changing credentials or custom headers.
```python
import mercadopago
from mercadopago.config import RequestOptions
request_options = RequestOptions(access_token='YOUR_ACCESS_TOKEN')
# ...
result = sdk.payment().create(payment_data, request_options)
payment = result["response"]
```
## 📚 Documentation
Visit our Dev Site for further information regarding:
- [APIs](https://www.mercadopago.com/developers/en/reference)
- [Checkout Pro](https://www.mercadopago.com/developers/en/guides/online-payments/checkout-pro/introduction)
- [Checkout API](https://www.mercadopago.com/developers/en/guides/online-payments/checkout-api/introduction)
- [Web Tokenize Checkout](https://www.mercadopago.com/developers/en/guides/online-payments/web-tokenize-checkout/introduction)
Check our official code reference to explore all available functionalities.
## 🤝 Contributing
All contributions are welcome, ranging from people wanting to triage issues, others wanting to write documentation, to people wanting to contribute code.
Please read and follow our [contribution guidelines](CONTRIBUTING.md). Contributions not following this guidelines will be disregarded. The guidelines are in place to make all of our lives easier and make contribution a consistent process for everyone.
## ❤️ Support
If you require technical support, please contact our support team at [developers.mercadopago.com](https://developers.mercadopago.com).
## 🏻 License
```
MIT license. Copyright (c) 2021 - Mercado Pago / Mercado Libre
For more information, see the LICENSE file.
```
Raw data
{
"_id": null,
"home_page": null,
"name": "mercadopago",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "api, mercadopago, checkout, payment in sdk integration, lts",
"author": null,
"author_email": "Mercado Pago <mp_sdk@mercadopago.com>",
"download_url": "https://files.pythonhosted.org/packages/41/9d/740f29d99f4287a70535e8dd9bac49af4e7ae07a69e468d648191fb39ebf/mercadopago-2.2.3.tar.gz",
"platform": null,
"description": "# Mercado Pago SDK for Python\n\n[![PyPI](https://img.shields.io/pypi/v/mercadopago.svg)](https://pypi.python.org/pypi/mercadopago)\n[![PyPI Downloads](https://img.shields.io/pypi/dm/mercadopago.svg)](https://pypi.python.org/pypi/mercadopago)\n[![APM](https://img.shields.io/apm/l/vim-mode)](https://github.com/mercadopago/sdk-python)\n\nThis library provides developers with a simple set of bindings to help you integrate Mercado Pago API to a website and start receiving payments.\n\n## \ud83d\udca1 Requirements\n\nPython 3 or higher.\n\n## \ud83d\udcf2 Installation \n\nRun ```pip3 install mercadopago```\n\n## \ud83c\udf1f Getting Started\n\nFirst time using Mercado Pago? Create your [Mercado Pago account](https://www.mercadopago.com).\n\nCopy your `Access Token` in the [credentials panel](https://www.mercadopago.com/developers/panel/credentials) and replace the text `YOUR_ACCESS_TOKEN` with it.\n\n### Simple usage\n \n```python\nimport mercadopago\n\nsdk = mercadopago.SDK(\"YOUR_ACCESS_TOKEN\")\n\nrequest_options = mercadopago.config.RequestOptions()\nrequest_options.custom_headers = {\n 'x-idempotency-key': '<SOME_UNIQUE_VALUE>'\n}\n\npayment_data = {\n \"transaction_amount\": 100,\n \"token\": \"CARD_TOKEN\",\n \"description\": \"Payment description\",\n \"payment_method_id\": 'visa',\n \"installments\": 1,\n \"payer\": {\n \"email\": 'test_user_123456@testuser.com'\n }\n}\nresult = sdk.payment().create(payment_data, request_options)\npayment = result[\"response\"]\n\nprint(payment)\n```\n\n### Per-request configuration\n\nAll methods that make API calls accept an optional `RequestOptions` object. This can be used to configure some special options of the request, such as changing credentials or custom headers.\n\n```python\nimport mercadopago\nfrom mercadopago.config import RequestOptions\n\nrequest_options = RequestOptions(access_token='YOUR_ACCESS_TOKEN')\n# ...\n\nresult = sdk.payment().create(payment_data, request_options)\npayment = result[\"response\"]\n```\n\n## \ud83d\udcda Documentation \n\nVisit our Dev Site for further information regarding:\n - [APIs](https://www.mercadopago.com/developers/en/reference)\n - [Checkout Pro](https://www.mercadopago.com/developers/en/guides/online-payments/checkout-pro/introduction)\n - [Checkout API](https://www.mercadopago.com/developers/en/guides/online-payments/checkout-api/introduction)\n - [Web Tokenize Checkout](https://www.mercadopago.com/developers/en/guides/online-payments/web-tokenize-checkout/introduction)\n\nCheck our official code reference to explore all available functionalities.\n\n## \ud83e\udd1d Contributing\n\nAll contributions are welcome, ranging from people wanting to triage issues, others wanting to write documentation, to people wanting to contribute code.\n\nPlease read and follow our [contribution guidelines](CONTRIBUTING.md). Contributions not following this guidelines will be disregarded. The guidelines are in place to make all of our lives easier and make contribution a consistent process for everyone.\n\n## \u2764\ufe0f Support\n\nIf you require technical support, please contact our support team at [developers.mercadopago.com](https://developers.mercadopago.com).\n\n## \ud83c\udffb License\n\n```\nMIT license. Copyright (c) 2021 - Mercado Pago / Mercado Libre\nFor more information, see the LICENSE file.\n```\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2021 MercadoPago Developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
"summary": "Mercadopago SDK module for Payments integration",
"version": "2.2.3",
"project_urls": {
"Homepage": "https://mercadopago.com",
"Repository": "https://github.com/mercadopago/sdk-python"
},
"split_keywords": [
"api",
" mercadopago",
" checkout",
" payment in sdk integration",
" lts"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "8d7fc0ce6951ce58795b5b9934c1cf7c925ac89d12f4f9b910d1c08b9e16cfa2",
"md5": "b8cc636ba7371da983ce3a275cf7ab93",
"sha256": "157f307b0072bf64feaf4d3319d705e58a5e297d09fd594f9a25c51c3552ba5e"
},
"downloads": -1,
"filename": "mercadopago-2.2.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b8cc636ba7371da983ce3a275cf7ab93",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 24817,
"upload_time": "2024-06-27T18:06:51",
"upload_time_iso_8601": "2024-06-27T18:06:51.845980Z",
"url": "https://files.pythonhosted.org/packages/8d/7f/c0ce6951ce58795b5b9934c1cf7c925ac89d12f4f9b910d1c08b9e16cfa2/mercadopago-2.2.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "419d740f29d99f4287a70535e8dd9bac49af4e7ae07a69e468d648191fb39ebf",
"md5": "a49f14ab675fe8c318f5739824d9948b",
"sha256": "7e6e51d49e0ba511be72ff282983b30e251543eedf1abacf35441cb5f1b39183"
},
"downloads": -1,
"filename": "mercadopago-2.2.3.tar.gz",
"has_sig": false,
"md5_digest": "a49f14ab675fe8c318f5739824d9948b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 19681,
"upload_time": "2024-06-27T18:06:53",
"upload_time_iso_8601": "2024-06-27T18:06:53.859509Z",
"url": "https://files.pythonhosted.org/packages/41/9d/740f29d99f4287a70535e8dd9bac49af4e7ae07a69e468d648191fb39ebf/mercadopago-2.2.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-06-27 18:06:53",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "mercadopago",
"github_project": "sdk-python",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "mercadopago"
}