[ADD] pos: integration of Mercado Pago payment terminal
task-3950536
closes odoo/documentation#10811
X-original-commit: b62898f13f
Signed-off-by: Xavier Platteau (xpl) <xpl@odoo.com>
Co-authored-by: Monnom Olivier <mool@odoo.com>
Co-authored-by: Perazzo Loredana <lrpz@odoo.com>
This commit is contained in:
parent
f6594f91cf
commit
d7cf79723e
@ -22,6 +22,7 @@ Then, follow the corresponding documentation to configure your device:
|
||||
|
||||
- :doc:`Adyen configuration <terminals/adyen>`
|
||||
- :doc:`Ingenico configuration <terminals/ingenico>`
|
||||
- :doc:`Mercado Pago configuration <terminals/mercado_pago>`
|
||||
- :doc:`SIX configuration <terminals/six>`
|
||||
- :doc:`Stripe configuration <terminals/stripe>`
|
||||
- :doc:`Vantiv configuration <terminals/vantiv>`
|
||||
@ -36,6 +37,7 @@ the POS <../payment_methods>`.
|
||||
|
||||
terminals/adyen
|
||||
terminals/ingenico
|
||||
terminals/mercado_pago
|
||||
terminals/six
|
||||
terminals/stripe
|
||||
terminals/vantiv
|
||||
|
@ -0,0 +1,116 @@
|
||||
============
|
||||
Mercado Pago
|
||||
============
|
||||
|
||||
Connecting a payment terminal allows you to offer a fluid payment flow to your customers and ease
|
||||
the work of your cashiers.
|
||||
|
||||
.. important::
|
||||
Only **Point Smart** payment terminals in **Argentina**, **Brazil**, and **Mexico** are
|
||||
supported. They can be purchased on `Mercado Pago's website
|
||||
<https://www.mercadopago.com.mx/herramientas-para-vender/lectores-point>`_.
|
||||
|
||||
.. seealso::
|
||||
`Mercado Pago online payments
|
||||
<https://www.mercadopago.com.mx/herramientas-para-vender/check-out#benefits-checkout>`_
|
||||
|
||||
.. _pos-mercado-pago-configuration:
|
||||
|
||||
Configuration
|
||||
=============
|
||||
|
||||
#. Create a `Mercado Pago account <https://www.mercadopago.com.mx/>`_.
|
||||
#. Associate your Point Smart terminal with a :guilabel:`store` and a :guilabel:`cash drawer` by
|
||||
following `Mercado Pago's documentation <https://vendedores.mercadolibre.com.ar/nota/locales-una-herramienta-para-mejorar-la-gestion-de-tus-puntos-de-venta/>`_.
|
||||
|
||||
.. note::
|
||||
All purchased terminals are automatically displayed on your Mercado dashboard.
|
||||
|
||||
#. Set your Point Smart terminal to the :guilabel:`Point of Sale` operation mode.
|
||||
|
||||
.. warning::
|
||||
Odoo does not support the :guilabel:`Standalone` operation mode.
|
||||
|
||||
#. :ref:`Create a Point Smart application <pos-mercado-pago-application>`.
|
||||
#. :ref:`Generate your credentials <pos-mercado-pago-credentials>`.
|
||||
#. :ref:`Create and configure the related payment method <pos-mercado-pago-method>`.
|
||||
|
||||
.. _pos-mercado-pago-application:
|
||||
|
||||
Point Smart application
|
||||
-----------------------
|
||||
|
||||
Create a new application from Mercado Pago's `developer panel
|
||||
<https://www.mercadopago.com/developers>`_ by following `Mercado Pago's applications documentation
|
||||
<https://www.mercadopago.com.mx/ayuda/20152>`_, making sure you select :guilabel:`In
|
||||
person Payments`.
|
||||
|
||||
.. _pos-mercado-pago-credentials:
|
||||
|
||||
Credentials
|
||||
-----------
|
||||
|
||||
Once the Point Smart application is created, three credentials are required:
|
||||
|
||||
- An access token that Odoo uses to call Mercado Pago.
|
||||
- A webhook secret key that Odoo uses to authenticate notifications sent by Mercado Pago.
|
||||
- The **terminal serial number** at the back of your Point Smart terminal.
|
||||
|
||||
Retrieve the access token and webhook secret key by following `Mercado Pago's credentials
|
||||
documentation <https://www.mercadopago.com.mx/developers/en/docs/your-integrations/credentials>`_.
|
||||
Then, copy and paste them into Odoo when creating the payment method.
|
||||
|
||||
.. important::
|
||||
For the webhooks configuration, add the URL of your Odoo database (e.g.,
|
||||
`https://mycompany.odoo.com`) followed by `/pos_mercado_pago/notification` (e.g.,
|
||||
`https://mycompany.odoo.com/pos_mercado_pago/notification`).
|
||||
|
||||
.. image:: mercado_pago/webhooks.png
|
||||
:alt: Webhooks configuration on Mercado Pago.
|
||||
|
||||
.. _pos-mercado-pago-method:
|
||||
|
||||
Payment method
|
||||
--------------
|
||||
|
||||
#. Go to :menuselection:`Point of Sale --> Configuration --> Settings` and enable :guilabel:`Mercado
|
||||
Pago` under the :guilabel:`Payment Terminals` section.
|
||||
#. :doc:`Create the related payment method <../../payment_methods>` by going to
|
||||
:menuselection:`Point of Sale --> Configuration --> Payment Methods`.
|
||||
#. Set the journal type as :guilabel:`Bank`
|
||||
#. Select :guilabel:`Mercado Pago` in the :guilabel:`Use a Payment Terminal` field.
|
||||
#. Fill in the mandatory fields with the :ref:`previously generated credentials
|
||||
<pos-mercado-pago-credentials>`:
|
||||
|
||||
- Fill in the :guilabel:`Production user token` field using the access token.
|
||||
- Fill in the :guilabel:`Production secret key` field using the webhook secret key.
|
||||
- Fill in the :guilabel:`Terminal S/N` field using the terminal serial number. You can find it at
|
||||
the back of your terminal.
|
||||
- Click the :guilabel:`Force PDV` button to activate the Point of Sale mode.
|
||||
|
||||
.. image:: mercado_pago/payment-method.png
|
||||
:alt: Form to create a new payment method.
|
||||
|
||||
Select the payment method by going to the :ref:`POS' settings <configuration/settings>` and adding
|
||||
it to the payment method under the :guilabel:`Payment Methods` field of the :guilabel:`Payment`
|
||||
section.
|
||||
|
||||
.. _pos-mercado-pago-pay:
|
||||
|
||||
Paying with a payment terminal
|
||||
==============================
|
||||
|
||||
When processing a payment, select your Mercado Pago payment method, check the amount, and click
|
||||
:guilabel:`Send`. Once the payment is successful, the status changes to :guilabel:`Payment
|
||||
Successful`.
|
||||
|
||||
.. note::
|
||||
- In case of connection issues between Odoo and the payment terminal, force the payment by
|
||||
clicking :guilabel:`Force Done`, which allows you to validate the order. This option is only
|
||||
available after receiving an error message informing you that the connection failed.
|
||||
- To cancel the payment request, click :guilabel:`Cancel`.
|
||||
|
||||
.. important::
|
||||
Any action made on the terminal should trigger a notification on the POS interface. Ensure the
|
||||
:ref:`webhook secret key <pos-mercado-pago-credentials>` is correctly configured if you are not
|
||||
notified.
|
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
Binary file not shown.
After Width: | Height: | Size: 31 KiB |
Loading…
Reference in New Issue
Block a user