Reusable Mercado Pago integration for Django projects
Project description
django-mercadopago-integration
Plug-and-play Mercado Pago integration for Django. No model changes — declare your entity in config and the package handles linking automatically.
- Using the package in your project? → Integration guide (install, credentials, URLs, entity & webhook setup).
- Developing or publishing this package? → Developer guide (local development, testing, publishing to PyPI).
What you get
| What | Description |
|---|---|
| URLs | Include mercado_pago.urls to get callback, payments, webhook, and refresh routes. |
| Endpoints | OAuth callback, direct payment (main account), notifications. Per-entity: register, disconnect, create_payment (split to that entity’s account). |
| Callbacks | OAuth GET /mercado_pago/oauth_callback/ (MP redirect; links account to entity). Webhook POST /mercado_pago/notifications/ (notifications; creates Payment/Income/Commission and optionally calls notification_handler). See INTEGRATION.md → Callbacks. |
| Models | MercadoPagoAccount, MercadoPagoAccountLink, MercadoPagoNotificationLog, MercadoPagoPayment, MercadoPagoIncome, MercadoPagoAppCommission. Payment/Income/Commission are created automatically for approved notifications. |
| Admin | Django admin for accounts, links, and notification logs. |
Quick start (see INTEGRATION.md for full steps):
pip install django-mercadopago-integration
Add "mercado_pago" to INSTALLED_APPS, run migrations, set credentials, and include the URLs. For per-entity register, disconnect, and create_payment, add entity_model (and optional fee/notification keys) to MERCADO_PAGO and mount the nested ViewSet — no code in your app, linking and payments are automatic.
License: MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_mercadopago_integration-1.0.0.tar.gz.
File metadata
- Download URL: django_mercadopago_integration-1.0.0.tar.gz
- Upload date:
- Size: 20.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.10.13 Darwin/25.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43dde43592a16f73d7d6814282bfd90c2f7d7914dfeec47bf4825ff468fff5e1
|
|
| MD5 |
c70cf66f5ff7cfcee793df2b89bc9d7f
|
|
| BLAKE2b-256 |
97c25c2e601e9b922143c1b6909a913f44f62cc97320dff6704987e987682595
|
File details
Details for the file django_mercadopago_integration-1.0.0-py3-none-any.whl.
File metadata
- Download URL: django_mercadopago_integration-1.0.0-py3-none-any.whl
- Upload date:
- Size: 27.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.10.13 Darwin/25.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5491cd83bee01b782881624a47304bc26f4c9e6e1822a75570af898a8809f96
|
|
| MD5 |
f5d691aac65006d0366b4f431147789f
|
|
| BLAKE2b-256 |
7e3509fe93a6f29b41cad257102b60cb6d0e8e6ad1725eb87eabfaf9340253fc
|