Skip to content

Commit 1703f61

Browse files
committed
[IMP] payment_providers/razorpay: connect button
task-4922616
1 parent 7753768 commit 1703f61

File tree

1 file changed

+62
-29
lines changed

1 file changed

+62
-29
lines changed

content/applications/finance/payment_providers/razorpay.rst

Lines changed: 62 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,53 +2,86 @@
22
Razorpay
33
========
44

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+
====================================
734

835
.. _payment_providers/razorpay/configure_dashboard:
936

10-
Configuration on Razorpay Dashboard
11-
===================================
37+
Razorpay configuration
38+
----------------------
1239

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.
1953
| For example: `https://example.odoo.com/payment/razorpay/webhook`.
2054
#. 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.
2558

2659
.. _payment_providers/razorpay/recurring_payments:
2760

2861
.. 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>`_.
3365

3466
.. _payment_providers/razorpay/configure_odoo:
3567

36-
Configuration on Odoo
37-
=====================
68+
Odoo configuration
69+
------------------
3870

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>`.
4173
#. 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
4375
: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>`).
4579

4680
.. important::
47-
If you configure Odoo to capture amounts manually:
81+
If you configure Odoo to :ref:`capture amounts manually <payment_providers/manual_capture>`:
4882

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**.
5285

5386
.. seealso::
54-
- :doc:`../payment_providers`
87+
:doc:`../payment_providers`

0 commit comments

Comments
 (0)