Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
3284 Vistas

Hi All

Context:

I am working on including a payment solution on my website.
I am following the steps in the documentation under this link: " documentation/17.0/applications/finance/payment_providers/stripe.html ".
I am in the testing stage and set up a test Stripe account.

What did I do?
- Use Stripe as a payment provider.
- Set up a test account in Stripe.
- Link Stripe to Odoo.
- Have the state of the Stripe as " Test Mode"
- Save the changes or publish the changes.

What is The Error?
Error when trying to save the changes (or publish it) described above.
Error message: "
Validation Error
You cannot set the provider to Test Mode while it is linked with your Stripe account."

Avatar
Descartar
Mejor respuesta

Hi Moemen, the error message could surely be clearer, but payment provider records that are linked to your Stripe account through the "Stripe Account" field (enable the developer mode to see it) cannot be set to the "Test" state.

To switch to test mode, you must first enable the developer mode, and then fill in your API credentials. The Stripe integration will use your API keys to connect you to Stripe instead of the "Stripe Account" field, thus allowing you to switch to test mode. Take note that you must fill in the Test environment keys if you set the provider in test mode, and the Live keys if you set it to the "Enabled" state.

Avatar
Descartar
Mejor respuesta

Solution / Check 1: Check System Parameters

1. Log into Odoo

2. Activate Developer Mode:

   - Click on Settings (gear icon)

   - Click "Activate developer mode" at the bottom of the menu

3. Go to Settings > Technical > System Parameters

4. Find "web.base.url" parameter

5. Make sure its value starts with "https://" (e.g., https://domain.com)

6. If it doesn't start with "https://", edit and add it

7. Save changes


Solution / Check 2: Update Odoo Configuration File

1. Locate your Odoo configuration file (usually odoo.conf)

2. Open the file in a text editor

3. Add or update these two lines:


   proxy_mode = True
   x_forwarded_for = True


4. Save the file

5. Restart your Odoo server for changes to take effect


After completing both steps, try creating the Stripe webhook again.

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
may 24
2083
0
feb 24
3023
1
ago 23
2077
1
dic 21
3627
0
ene 21
3954