|
2 | 2 | Razorpay
|
3 | 3 | ========
|
4 | 4 |
|
5 |
| -`Razorpay <https://razorpay.com/>`_ is an online payments provider established in India and |
6 |
| -covering more than 100 payment methods. |
| 5 | +`Razorpay <https://razorpay.com/>`_ is an online payments provider established in India thatsupports |
| 6 | +more than 100 payment methods. |
| 7 | + |
| 8 | +.. _payment_providers/razorpay/oauth-connection: |
| 9 | + |
| 10 | +Create a Razorpay account with Odoo (Indian companies only) |
| 11 | +=========================================================== |
| 12 | + |
| 13 | +.. note:: |
| 14 | + - This method is only available for Indian companies. |
| 15 | + - If you want to :ref:`try Razorpay as a test <payment_providers/test-mode>` first, use the |
| 16 | + :ref:`manual credentials and webhook input method <payment_providers/razorpay/manual-connection>`. |
| 17 | + |
| 18 | +#. :ref:`Navigate to the Razorpay payment provider <payment_providers/supported_providers>` and |
| 19 | + click :guilabel:`Connect`. |
| 20 | +#. Go through the account creation process and enter the verification codes when prompted. |
| 21 | + |
| 22 | + .. tip:: |
| 23 | + If you already have a Razorpay account, enter your Razorpay credentials, select the account |
| 24 | + you want to link to your Odoo database (if applicable), then click :guilabel:`Continue`. |
| 25 | + |
| 26 | +#. At the end of the process, click :guilabel:`Authorize`. If all required information |
| 27 | + has been submitted, you are then redirected to Odoo, and the payment provider is |
| 28 | + :guilabel:`Enabled`. |
| 29 | + |
| 30 | +.. _payment_providers/razorpay/manual-connection: |
| 31 | + |
| 32 | +Manual credentials and webhook input |
| 33 | +==================================== |
7 | 34 |
|
8 | 35 | .. _payment_providers/razorpay/configure_dashboard:
|
9 | 36 |
|
10 |
| -Configuration on Razorpay Dashboard |
11 |
| -=================================== |
| 37 | +Razorpay configuration |
| 38 | +---------------------- |
12 | 39 |
|
13 |
| -#. Log into `Razorpay Dashboard <https://dashboard.razorpay.com/>`_ and go to |
14 |
| - :menuselection:`Settings --> API Keys`. Generate the new keys and copy the values of the |
15 |
| - :guilabel:`Key Id` and :guilabel:`Secret Key` fields and save them for later. |
16 |
| -#. | Go to :menuselection:`Settings --> Webhooks`, click on :guilabel:`Create New Webhook`, |
17 |
| - and enter your Odoo database URL followed by `/payment/razorpay/webhook` in |
18 |
| - the :guilabel:`Webhook URL` text field. |
| 40 | +#. `Create a Razorpay account <https://accounts.razorpay.com/>`_ if necessary and log into the |
| 41 | + `Razorpay Dashboard <https://dashboard.razorpay.com/>`_. |
| 42 | +#. Go to the :guilabel:`Payments` tab at the top of the page. |
| 43 | +#. Toggle the :guilabel:`Test Mode` switch in the left menu to try the integration without |
| 44 | + charging customers. Toggle it off once you are ready to accept real payments. |
| 45 | +#. Click :guilabel:`Account & Settings` in the left menu, then, under :guilabel:`Website and app |
| 46 | + settings`, select `API Keys <https://dashboard.razorpay.com/app/website-app-settings/api-keys>`_. |
| 47 | +#. Copy the values of the :guilabel:`Key Id` and :guilabel:`Secret Key` fields and save them for |
| 48 | + later. |
| 49 | +#. Click :guilabel:`Account & Settings` in the left menu, then, under :guilabel:`Website and app |
| 50 | + settings`, select `Webhooks <https://dashboard.razorpay.com/app/website-app-settings/webhooks>`_. |
| 51 | +#. | Click :guilabel:`Add New Webhook`, then enter your Odoo database URL followed by |
| 52 | + `/payment/razorpay/webhook` in the :guilabel:`Webhook URL` text field. |
19 | 53 | | For example: `https://example.odoo.com/payment/razorpay/webhook`.
|
20 | 54 | #. Fill the :guilabel:`Secret` field with a password of your choice and save it for later.
|
21 |
| -#. Make sure the :guilabel:`payment.authorized`, :guilabel:`payment.captured`, |
22 |
| - :guilabel:`payment.failed`, :guilabel:`refund.failed` and :guilabel:`refund.processed` |
23 |
| - checkboxes are ticked. |
24 |
| -#. Click on :guilabel:`Create Webhook` to finalize the configuration. |
| 55 | +#. Enable the following events: :guilabel:`payment.authorized`, :guilabel:`payment.captured`, |
| 56 | + :guilabel:`payment.failed`, :guilabel:`refund.failed`, and :guilabel:`refund.processed`. |
| 57 | +#. Click :guilabel:`Create Webhook` to finalize the configuration. |
25 | 58 |
|
26 | 59 | .. _payment_providers/razorpay/recurring_payments:
|
27 | 60 |
|
28 | 61 | .. important::
|
29 |
| - The :guilabel:`Recurring payments` feature must |
30 |
| - be activated if you want to make recurring payments. |
31 |
| - Send a request to the `Razorpay Support team <https://razorpay.com/support/#request>`_ to |
32 |
| - enable recurring payments. |
| 62 | + The `Recurring payments <https://razorpay.com/docs/payments/recurring-payments/>`_ feature must |
| 63 | + be activated to accept recurring payments. To enable this feature, submit a request to the |
| 64 | + `Razorpay Support team <https://razorpay.com/support/#request>`_. |
33 | 65 |
|
34 | 66 | .. _payment_providers/razorpay/configure_odoo:
|
35 | 67 |
|
36 |
| -Configuration on Odoo |
37 |
| -===================== |
| 68 | +Odoo configuration |
| 69 | +------------------ |
38 | 70 |
|
39 |
| -#. :ref:`Navigate to the payment provider Razorpay <payment_providers/add_new>` and change its |
40 |
| - state to :guilabel:`Enabled`. |
| 71 | +#. Activate :ref:`developer mode <developer-mode>`. |
| 72 | +#. :ref:`Navigate to the Razorpay payment provider <payment_providers/add_new>`. |
41 | 73 | #. In the :guilabel:`Credentials` tab, fill the :guilabel:`Key Id`, :guilabel:`Key Secret`, and
|
42 |
| - :guilabel:`Webhook Secret` with the values you saved at the step |
| 74 | + :guilabel:`Webhook Secret` with the values you saved during |
43 | 75 | :ref:`payment_providers/razorpay/configure_dashboard`.
|
44 |
| -#. Configure the rest of the options to your liking. |
| 76 | +#. Configure the remaining options as needed. |
| 77 | +#. Set the :guilabel:`State` field to :guilabel:`Enabled` (or :guilabel:`Test Mode` if you are |
| 78 | + trying Razorpay as a :ref:`test <payment_providers/test-mode>`). |
45 | 79 |
|
46 | 80 | .. important::
|
47 |
| - If you configure Odoo to capture amounts manually: |
| 81 | + If you configure Odoo to :ref:`capture amounts manually <payment_providers/manual_capture>`: |
48 | 82 |
|
49 |
| - - Be aware that the **manual voiding** of a transaction is not supported by Razorpay. |
50 |
| - - After **five days**, if the transaction hasn't been captured yet, it'll automatically be |
51 |
| - **voided**. |
| 83 | + - **Manual voiding** of a transaction is not supported by Razorpay. |
| 84 | + - Transactions that remain uncaptured for more than **five days** are automatically **voided**. |
52 | 85 |
|
53 | 86 | .. seealso::
|
54 |
| - - :doc:`../payment_providers` |
| 87 | + :doc:`../payment_providers` |
0 commit comments