mercadopago
Mercadopago SDK module for Payments integration
What it is and what it does
The mercadopago package is the official Python SDK for Mercado Pago, a Latin American payment platform. It wraps Mercado Pago's REST APIs into a Python object model, letting you create orders, process payments, and manage transactions without building HTTP calls manually. The SDK supports both the modern Orders API (recommended for new integrations) and the legacy Payments API, with optional typed request dataclasses for schema validation.
You initialize the SDK with your access token, then call methods like `sdk.order().create()` or `sdk.payment().create()` with payment data as a dict or typed object. Responses come back as dicts keyed by 'response' and 'status'. The package depends only on requests and requires Python 3.10+, making it lightweight to add to existing projects.
Use it for:
- Accept online payments on an e-commerce site using the Orders API with card tokens and installment options.
- Process recurring or subscription payments with automatic payment methods and stored credentials.
- Integrate Mercado Pago Checkout Pro or Web Tokenize Checkout into a web application.
- Query and manage payment history and transaction details programmatically.
- Build a payment flow with custom headers and idempotency keys for reliable request handling.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides Python bindings to integrate Mercado Pago's payment APIs, enabling you to create orders, process payments, and manage transactions programmatically.
Yes. The package is actively maintained, has no known vulnerabilities, installs with minimal friction, and is MIT-licensed. Install it if you need to integrate Mercado Pago payments into a Python application. The only prerequisite is Python 3.10+ and a valid Mercado Pago account with an access token.
Install
mercadopago on PyPI
pip
pip install mercadopagouv
uv add mercadopagopoetry
poetry add mercadopagoInstalling mercadopago
Before you install
Low friction install with a single dependency (requests). The package is actively maintained with a recent release (3 days old) and has been in development since 2012, indicating stable long-term support.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
Quickstart
pip install mercadopago
import mercadopago
sdk = mercadopago.SDK("YOUR_ACCESS_TOKEN")
order_data = {"type": "online", "total_amount": "100.00"}
result = sdk.order().create(order_data)
print(result["response"])
Requires Python 3.10 or higher; you must obtain an Access Token from your Mercado Pago credentials panel.
Verify before relying
- Whether the SDK handles webhook signature verification for payment notifications.
- Rate limiting behavior and retry logic for failed API requests.
- Support for all Mercado Pago payment methods beyond credit cards (e.g., digital wallets, bank transfers).
Package facts
| 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… (full text in the JSON record) (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — requests |
| Maintenance | actively maintained — 3 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 366,125/month — #7,205 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: mercadopago-3.5.0-py3-none-any.whl
Keywords: api, mercadopago, checkout, payment in sdk integration, lts
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
AdyenProvides official Python bindings for Adyen's…
permissive · top 5,000 on PyPI
razorpayPython client library for the Razorpay payment…
permissive · top 5,000 on PyPI
yookassaPython client library for integrating YooKassa…
permissive · top 15,000 on PyPI
paypalrestsdkA REST client library for integrating PayPal…
unclear · top 5,000 on PyPI
mollie-api-pythonPython client library for the Mollie payment…
permissive · top 15,000 on PyPI
braintreeProvides Python bindings to the Braintree…
permissive · top 5,000 on PyPI
dodopaymentsProvides a Python client library for the Dodo…
permissive · top 15,000 on PyPI
beanstreamProvides a Python client library for the…
permissive · top 15,000 on PyPI
chargehoundChargehound provides Python bindings to…
permissive · top 15,000 on PyPI
breez-sdk-sparkPython bindings for the Breez Spark SDK,…
permissive · top 15,000 on PyPI