A mercadopago payment gateway backend for django-payments.
Project description
django-payments-mercadopago
A mercadopago payment gateway backend for django-payments <https://github.com/mirumee/django-payments>
_
Installation
You can install it via pip
.. code-block:: bash
pip install django-payments-mercadopago
Add payments_mercadopago to your settings.py file
.. code-block:: python
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 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. code-block:: python
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 <https://ngrok.com>
_ instead.
Configuration for production ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. code-block:: python
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 <https://www.mercadopago.com/developers/panel/credentials>
_
Documentation
For detailed instructions on how to use django-payments please visit the official django-payments documentation <https://django-payments.readthedocs.io/en/latest/>
_
======= History
0.4.0 (2020-10-17)
- Change project layout based on cookiecutter. Include tox, add AUTHOR, CONTRIBUTING, HISTORY, Docs, etc.
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
Built Distributions
Hashes for django-payments-mercadopago-0.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebdfb4355a4fa50d06ee4ae55bb66057afac51ce0276ac2fe50f7466b97c9f02 |
|
MD5 | bec5da4a15d8ca5227c2d489198c5100 |
|
BLAKE2b-256 | c5d7691e54451546bfbf79b30c6f8bf45938c0e0f8363f5303a6ee2176ad45db |
Hashes for django_payments_mercadopago-0.4.0-py3.7.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58991f7792398472140749893489626d64cbe7f0062080ec8be905326f0a0630 |
|
MD5 | c42f7f4177ee3e2e71f43eb944dfe697 |
|
BLAKE2b-256 | f5e759a625a605cbe7cf6596c6d2c12ffc1b64c7e72f782af48186113b85b7b4 |
Hashes for django_payments_mercadopago-0.4.0-py3.5.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | b451bf47997bd984674d2312ca5871a831216074907d4ec9b55d2d3ae27e1d8d |
|
MD5 | 8a4eac13b0acf401a63596023ab146b0 |
|
BLAKE2b-256 | 63005f96f3876d50e04e8c954b7ecba32936c5a02fb8685d852b797b6aaa5162 |