django-payments-mercadopago
A mercadopago payment gateway backend for django-payments
Compatibility
Python 3.6 ≥ 3.8
Django 2.2 ≥ 3.2
Installation
You can install it via pip, pipenv or your favorite virtual environment manager
pip install django-payments-mercadopago
Add payments_mercadopago to your settings.py file
INSTALLED_APPS = [
# ...
'payments_mercadopago',
]
Settings.py configuration
Add the payments_mercadopago.MercadoPagoProvider to your PAYMENT_VARIANTS variable. Also to make it available add MercadoPago to your CHECKOUT_PAYMENT_CHOICES variable
Configuration for development
PAYMENT_VARIANTS = {
# ...
'MercadoPago':('payments_mercadopago.MercadoPagoProvider',{
'access_token': 'MERCADO_PAGO_SANDBOX_ACCESS_TOKEN',
'sandbox_mode': True})
}
CHECKOUT_PAYMENT_CHOICES = [('MercadoPago', 'Mercado Pago')]
If you have any problem using localhost urls as the return value of get_failure_url() or get_success_url() methods try using ngrok.
Configuration for production
PAYMENT_VARIANTS = {
# ...
'MercadoPago':('payments_mercadopago.MercadoPagoProvider',{
'access_token': 'MERCADO_PAGO_ACCESS_TOKEN',
'sandbox_mode': False})
}
CHECKOUT_PAYMENT_CHOICES = [('MercadoPago', 'Mercado Pago')]
Obtaining the Tokens
You can get your own Mercado Pago production and sandbox access tokens in your Mercado pago developer panel
Documentation
This project uses django-payments to work. For detailed instructions on how to make and configure payments using django-payments please visit the official django-payments documentation
History
0.4.0 (2020-10-17)
Change project layout, adapted from cookiecutter. Include tox tests, add AUTHOR, CONTRIBUTING, HISTORY, Docs, etc.
Metadata
Release files for django-payments-mercadopago 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-payments-mercadopago-0.4.1.tar.gz | 13.5 kB | Without provenance | Details for django-payments-mercadopago-0.4.1.tar.gz |
Release files / django-payments-mercadopago-0.4.1.tar.gz
| Download URL | django-payments-mercadopago-0.4.1.tar.gz |
|---|---|
| Size | 13.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fc2e9d09d2367ff57df04d4d734902917867f471274fd604a3b9585a161ecef8
|
|
BLAKE2b-256 checksum How to use checksums |
e9bb853032f5a5455bf248f81a51f9911ff676abf2dc49972112d451464bd819
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.14.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.5.3
|
Security for django-payments-mercadopago 0.4.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.