Skip to main content

Mercado Pago SDK for Python

PyPI PyPI Downloads APM

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 2 or higher

📲 Installation

First time using Mercado Pago? Create your Mercado Pago account, if you don’t have one already.

On Python 2.x

pip install mercadopago

On Python 3.x

pip3 install mercadopago

Copy the access_token in the credentials section of the page and replace YOUR_ACCESS_TOKEN with it.

That's it! Mercado Pago SDK has been successfully installed.

🌟 Getting Started

Simple usage looks like:

import mercadopago
import json

mp = mercadopago.MP("YOUR_ACCESS_TOKEN")

def index(req, **kwargs):
    preference = {
        "items": [
            {
                "title": "Test",
                "quantity": 1,
                "currency_id": "USD",
                "unit_price": 10.4
            }
        ]
    }

    mp.create_preference(preference)

📚 Documentation

Visit our Dev Site for further information regarding:

Check our official code reference to explore all available functionalities.

❤️ Support

If you require technical support, please contact our support team at developers.mercadopago.com

🏻 License

MIT license. Copyright (c) 2018 - Mercado Pago / Mercado Libre 
For more information, see the LICENSE file.

Metadata

Release files for mercadopago 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mercadopago 1.2.1
File Size Uploaded Provenance Actions
mercadopago-1.2.1.tar.gz 5.8 kB Without provenance Details for mercadopago-1.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mercadopago 1.2.1
File Interpreter ABI Platform Actions
mercadopago-1.2.1-py3-none-any.whl Python 3 none any Details for mercadopago-1.2.1-py3-none-any.whl

Total release size: 11.5 kB

Release files / mercadopago-1.2.1.tar.gz

Download URL mercadopago-1.2.1.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0941045b501e9ec4655d5ba077cff230db9a021f2661507f4c55ce571e65fe9a
BLAKE2b-256 checksum
How to use checksums
363711d513872857e2685649370cb3305a3f15155bff033676de893981cc46db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.0

Release files / mercadopago-1.2.1-py3-none-any.whl

Download URL mercadopago-1.2.1-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5a0535fc6336e50f2cee49a8f77b3bc04b3f159a3c5cabf43837b4c775fe3e76
BLAKE2b-256 checksum
How to use checksums
0628f9391baaf6513d313f00ff9f252d7f7ef29bf1a891ccb97187e585bdf276
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.0

Security for mercadopago 1.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 release files No provenance

0.1.5

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page