Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_mercadopago_integration-1.0.0.tar.gz (20.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_mercadopago_integration-1.0.0-py3-none-any.whl (27.4 kB view details)

Uploaded Python 3

File details

Details for the file django_mercadopago_integration-1.0.0.tar.gz.

File metadata

File hashes

Hashes for django_mercadopago_integration-1.0.0.tar.gz
Algorithm Hash digest
SHA256 43dde43592a16f73d7d6814282bfd90c2f7d7914dfeec47bf4825ff468fff5e1
MD5 c70cf66f5ff7cfcee793df2b89bc9d7f
BLAKE2b-256 97c25c2e601e9b922143c1b6909a913f44f62cc97320dff6704987e987682595

See more details on using hashes here.

File details

Details for the file django_mercadopago_integration-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_mercadopago_integration-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a5491cd83bee01b782881624a47304bc26f4c9e6e1822a75570af898a8809f96
MD5 f5d691aac65006d0366b4f431147789f
BLAKE2b-256 7e3509fe93a6f29b41cad257102b60cb6d0e8e6ad1725eb87eabfaf9340253fc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page