@@ -19,66 +19,65 @@ your terminal following the steps described on your terminal's screen.
1919 - `Adyen Docs - Payment terminal quickstart guides
2020 <https://docs.adyen.com/point-of-sale/user-manuals> `_.
2121
22- Configure the payment method
23- ----------------------------
24-
25- First, go to :menuselection: `Point of Sale --> Configuration --> Settings --> Payment Terminals `,
26- and enable :guilabel: `Adyen `.
27- Then, go to :menuselection: `Configuration --> Payment Methods ` and create a new payment method.
28- Select :guilabel: `Adyen ` in the :guilabel: `Use a Payment Terminal ` field.
29-
30- .. note ::
31- The selected journal **must ** be a bank journal for the :guilabel: `Use a payment terminal ` field
32- to appear.
33-
34- Finally, fill the mandatory fields with an :guilabel: `Adyen API key `, and an :guilabel: `Adyen
35- Terminal Identifier `.
22+ .. _adyen/api :
3623
3724Generate an Adyen API key
38- ~~~~~~~~~~~~~~~~~~~~~~~~~
39-
40- The **Adyen API key ** is a key used to authenticate your requests. To generate an API key, go to
41- your **Adyen account **.
25+ -------------------------
4226
43- Then, go to :menuselection: `Developers --> API credentials `. Create a new credential or click on an
44- existing one.
45-
46- Click on :guilabel: `Generate an API key ` and copy-paste that key onto the Odoo mandatory field.
27+ The **Adyen API key ** is used to authenticate requests from your Adyen terminal. To generate an API
28+ key, go to your :menuselection: `Adyen account --> Developers --> API credentials `, and **create **
29+ new credentials or select **existing ** ones. Click :guilabel: `Generate an API key ` and save the key
30+ to paste it into the Odoo :guilabel: `Adyen API key ` field at :ref: `the payment method creation
31+ <adyen/method-creation>`.
4732
4833.. seealso ::
4934 - `Adyen Docs - API credentials
5035 <https://docs.adyen.com/development-resources/api-credentials#generate-api-key> `_.
5136
37+ .. _adyen/identifier :
38+
5239Locate the Adyen terminal identifier
53- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
40+ ------------------------------------
5441
55- The **Adyen Terminal Identifier ** is your terminal's serial number, which is used to identify the
42+ The **Adyen Terminal Identifier ** is the terminal's serial number, which is used to identify the
5643hardware.
5744
58- To find this number, go to your **Adyen account **. Then, go to :menuselection: `Point of Sale
59- --> Terminals `, select the terminal to link, and copy-paste its serial number onto the Odoo
60- mandatory field.
45+ To find this number, go to your :menuselection: `Adyen account --> Point of Sale --> Terminals `,
46+ select the terminal to link with, and save its serial number to paste it into the Odoo
47+ :guilabel: `Adyen Terminal Identifier ` field at :ref: `the payment method creation
48+ <adyen/method-creation>`.
6149
6250Set the Event URLs
63- ~~~~~~~~~~~~~~~~~~
51+ ------------------
6452
65- For Odoo to know when a payment is made, you must set the terminal **Event URLs **. To do so,
53+ For Odoo to know when a payment is made, you must configure the terminal **Event URLs **. To do so,
6654
67- #. log in to `Adyen's website <https://www.adyen.com/ >`_;
68- #. go to :menuselection: `Adyen's dashboard --> Point of Sale --> Terminals ` and select the connected
55+ #. Log in to `Adyen's website <https://www.adyen.com/ >`_;
56+ #. Go to :menuselection: `Adyen's dashboard --> Point of Sale --> Terminals ` and select the connected
6957 terminal;
70- #. from the terminal settings, click :guilabel: `Integrations `;
71- #. set the :guilabel: `Switch to decrypted mode to edit this setting ` field as :guilabel: `Decrypted `;
72- #. click the **pencil icon ** button and enter your server address, followed by
73- `/pos_adyen/notification ` in the :guilabel: `Event URLs ` field; and
74- #. click :guilabel: `Save ` at the bottom of the screen to save the changes.
75-
76- Add a new payment method
77- ========================
78-
79- To add a new **payment method ** to a point of sale, go to :menuselection: `Point of Sale -->
80- Configuration --> Point of Sale `. Then, select the POS and go to :menuselection: `Payments -->
81- Payment Methods `, and add your new method for Adyen.
58+ #. From the terminal settings, click :guilabel: `Integrations `;
59+ #. Set the :guilabel: `Switch to decrypted mode to edit this setting ` field as :guilabel: `Decrypted `;
60+ #. Click the **pencil icon ** button and enter your server address, followed by
61+ `/pos_adyen/notification ` in the :guilabel: `Event URLs ` field;
62+ #. Click :guilabel: `Save ` at the bottom of the screen to save changes.
63+
64+ .. _adyen/method-creation :
65+
66+ Configure the payment method
67+ ----------------------------
68+
69+ Enable the payment terminal :ref: `in the application settings <configuration/settings >` and
70+ :doc: `create the related payment method <../../payment_methods >`. Set the journal type as
71+ :guilabel: `Bank ` and select :guilabel: `Adyen ` in the :guilabel: `Use a Payment Terminal ` field.
72+
73+ Finally, fill in the mandatory fields with your :ref: `Adyen API key <adyen/api >`, :ref: `Adyen
74+ Terminal Identifier <adyen/identifier>`, and :guilabel: `Adyen Merchant Account `.
75+
76+ .. image :: adyen/payment-method.png
77+
78+ Once the payment method is created, you can select it in your POS settings. To do so, go to the
79+ :ref: `POS' settings <configuration/settings >`, click :guilabel: `Edit `, and add the payment method
80+ under the :guilabel: `Payments ` section.
8281
8382Pay with a payment terminal
8483===========================
0 commit comments