Razorpay¶
Razorpay is an online payments provider established in India that supports more than 100 payment methods.
Create a Razorpay account with Odoo (Indian companies only)¶
Notă
This method is only available for Indian companies.
This flow does not support the test mode.
Navigate to the Razorpay payment provider and click Connect.
Go through the account creation process and enter the verification codes when prompted.
Sfat
If you already have a Razorpay account, enter your Razorpay credentials, select the account you want to link to your Odoo database (if applicable), then click Continue.
At the end of the process, click Authorize. If all required information has been submitted, you are then redirected to Odoo, and the payment provider is Enabled.
Manual credentials and webhook input¶
Razorpay configuration¶
Create a Razorpay account if necessary and log into the Razorpay Dashboard.
Go to the Payments tab at the top of the page.
Toggle the Test Mode switch in the left menu to try the integration without charging customers. Toggle it off once you are ready to accept real payments.
Click Account & Settings in the left menu, then, under Website and app settings, select API Keys.
Copy the values of the Key Id and Secret Key fields and save them for later.
Click Account & Settings in the left menu, then, under Website and app settings, select Webhooks.
- Click Add New Webhook, then enter your Odoo database URL followed by
/payment/razorpay/webhook
in the Webhook URL field.De exemplu:https://example.odoo.com/payment/razorpay/webhook
. Compleati campul Secret cu o parola aleasa de dvs. si salvati-o pentru mai tarziu.
Enable the following events: payment.authorized, payment.captured, payment.failed, refund.failed, and refund.processed.
Click Create Webhook to finalize the configuration.
Important
The Recurring payments feature must be activated to accept recurring payments. To enable this feature, submit a request to the Razorpay Support team.
Configurație Odoo¶
Activate developer mode.
In the Credentials tab, fill the Key Id, Key Secret, and Webhook Secret with the values you saved during Razorpay configuration.
Configure the remaining options as needed.
Set the State field to Enabled (or Test Mode if you are trying Razorpay as a test).
Important
If you configure Odoo to capture amounts manually:
Manual voiding of a transaction is not supported by Razorpay.
Transactions that remain uncaptured for more than five days are automatically voided.
Vedeți și