How to activate a payment provider in Odoo?

Access Payment Providers

Go to:
Accounting / Invoicing → Configuration → Payment Providers


Enable a Payment Provider

  1. Open the required provider (e.g. Stripe, PayPal, Razorpay, Authorize.Net, Adyen)

  2. Click Activate or Enable

  3. Set State:

    • Test Mode → For testing

    • Enabled / Live → For production


Configure Provider Credentials

Each provider requires API credentials:

Examples:

  • Stripe → Publishable Key & Secret Key

  • PayPal → Client ID & Secret

  • Razorpay → Key ID & Key Secret

Get Provider Credentials (PayPal)

Configuration in PayPal

  1. Log into your PayPal Developer Dashboard.
  2. Click Apps & Credentials and click Create App. https://developer.paypal.com/dashboard/
  3. Enter an App Name and click Create App.
  4. Copy the Client ID and Secret and save

Configuration in Odoo

  1. Navigate to the payment provider PayPal.
  2. In the Credentials tab, enter the Email linked to your PayPal account, then fill in the Client ID and Client Secret fields with the values you saved at the step Configuration in PayPal.
  3. Click Generate your webhook to create the Webhook ID.
  4. Set the State field to Enabled and make sure the PayPal payment provider is Published.
  5. Configure the remaining options as desired.

To test the PayPal payment workflow in Odoo:

  1. Log into the Paypal Developer Site using your PayPal credentials and go to Testing Tools ‣ Sandbox Accounts.
  2. Click the  (ellipsis) icon next to the sandbox business account and select View/Edit account.
  3. Copy the EmailClient ID, and Secret and save them for the next step.
  4. In Odoo, configure the PayPal payment provider with the values saved at the previous step and set the State field to Test Mode.

You can then run a test transaction from Odoo using the sandbox personal account.

Set “Payment method” in customer master is mandatory.