|
| 1 | +====== |
| 2 | +Xendit |
| 3 | +====== |
| 4 | + |
| 5 | +`Xendit <https://www.xendit.co>`_ is an Indonesian-based payment solution provider that covers |
| 6 | +several Southeast Asian countries. It allows businesses to accept credit cards as well as several |
| 7 | +local payment methods. |
| 8 | + |
| 9 | +.. _payment_providers/xendit/configure_dashboard: |
| 10 | + |
| 11 | +Configuration on the Xendit Dashboard |
| 12 | +===================================== |
| 13 | + |
| 14 | +#. Create a Xendit account if necessary and log in to the `Xendit Dashboard |
| 15 | + <https://dashboard.xendit.co>`_. |
| 16 | +#. Check your account mode in the top left corner of the page. Use the :guilabel:`Test Mode` to try |
| 17 | + the integration without charging your customers. Switch to :guilabel:`Live Mode` once you are |
| 18 | + ready to accept payments. |
| 19 | +#. Navigate to :menuselection:`Configuration: Settings` in the left part of the application page. |
| 20 | + In the :guilabel:`Developers` section, click |
| 21 | + `API Keys <https://dashboard.xendit.co/settings/developers#api-keys>`_. |
| 22 | +#. Click :guilabel:`Generate Secret Key`. In the popup box, enter any :guilabel:`API key name`, |
| 23 | + select :guilabel:`Write` for the :guilabel:`Money-in Products` permission and :guilabel:`None` |
| 24 | + for all other permissions then click :guilabel:`Generate key`. |
| 25 | +#. Confirm your password to display your API key. Copy or download the key and **save |
| 26 | + this information securely for later**. This is the only time the API key can be viewed or |
| 27 | + downloaded. |
| 28 | +#. Once completed, scroll down the page to the |
| 29 | + `Webhooks <https://dashboard.xendit.co/settings/developers#webhooks>`_ section to generate |
| 30 | + the webhook token. |
| 31 | +#. Under :guilabel:`Webhook verification token`, click :guilabel:`View Webhook Verification Token`, |
| 32 | + then confirm your password to display the token. Save it for later. |
| 33 | +#. In the :guilabel:`Webhook URL` section, enter your Odoo database URL (e.g., |
| 34 | + `https://example.odoo.com`) in the field :guilabel:`Invoices paid` and click the |
| 35 | + :guilabel:`Test and save` button next to it. |
| 36 | + |
| 37 | +Configuration on Odoo |
| 38 | +===================== |
| 39 | + |
| 40 | +#. :ref:`Navigate to the payment provider Xendit <payment_providers/add_new>` and change its state |
| 41 | + to :guilabel:`Enabled`. |
| 42 | +#. Fill in the :guilabel:`Secret Key` and :guilabel:`Webhook Token` fields with the |
| 43 | + information saved at the step :ref:`payment_providers/xendit/configure_dashboard`. |
| 44 | +#. Configure the rest of the options to your liking. |
| 45 | + |
| 46
+.. seealso:: |
| 47 | + :doc:`../payment_providers` |
0 commit comments