Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
6 Trả lời
1131 Lượt xem

Hello,

After upgrade Odoo to V18, and follow this tutoriel for Paypal i got the error "Paypal : Failed to communicate with the API. Detail :" (https://www.odoo.com/documentation/18.0/fr/applications/finance/payment_providers/paypal.html#payment-providers-paypal-configuration-odoo)
Maybe i do something wrong, but i can't see what.

Could you help me please ?

Thank you.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

I am encountering the same issue and have followed all the provided guidelines, but I continue to receive a “Failed to communicate with the API” error.

Initially, I thought the issue was related to my instance, so I set up a trial instance on Odoo Online but experienced the same error. To rule out sandbox API credential issues, I tested with live credentials but encountered the same result.

As my next step, I plan to launch a new instance running Odoo Community 17 to verify if the issue persists in that version.

I would appreciate any insights or suggestions on resolving this matter. Thank you for your time and support everyone.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi all, 

I have experienced the same issue but managed to resolve it on my end. It appears that the Odoo documentation is unclear. 


Please try these steps to configure correctly. Please note I am using sandbox environment. 

  1. Log into the Paypal developer dashboard, you will have 2 sandbox accounts set up automatically. 
    The Merchant (business) and personal (as a Consumer). 
  2. Create an API app for the merchant paypal email address.
  3. The client ID and secret key will be generated. 
  4. Log into paypal using the merchant account credentials (See Sandbox accounts for credentials).
  5. Navigate to Account settings > Website payments to set up the payment data transfer that will generate the Identity Token which we will use as our Webhook ID.


Getting your Client ID and secret key, and the merchant account credentials for Step 4.


To get your Webhook ID


Hope it helps.


Regards,

Audrey Ng

3D Photomation Pty Ltd

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

We're experiencing the same issue after our upgrade.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

you need to manual setup your PayPal Webhook in Odoo.

You find your Webhook ID here: https://www.paypal.com/businessmanage/preferences/website

Just copy to Odoo and use the PayPal App you used before. Odoo lost the Webhook during migration.


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi threre, i am facing the same problem. Customers cannot use paypal to pay my invoices.

I tried to find the problem by myself...

Seems like my Odoo 18.0 instance is not sending anything about the customer to paypal (missing name, address, postal code, city, country). only my business information was shared. Customer is private without Tax-ID, without PEPPOL.

2025-02-07 11:30:38,948 1 ERROR xxxxx odoo.addons.payment_paypal.models.payment_provider: Invalid API request at https://api-m.paypal.com/v2/checkout/orders with data:

{'intent': 'CAPTURE',
'payment_source': {'paypal': {'address': {'address_line_1': '',
                                           'admin_area_1': False,
                                           'admin_area_2': False,
                                           'country_code': False,
                                           'postal_code': False},
                               'email_address': 'xxxxxx@xx.xx',
                               'experience_context': {'shipping_preference': 'NO_SHIPPING'},
                               'name': {'given_name': 'xxxx',
                                        'surname': 'xxxxx'}}},
'purchase_units': [{'amount': {'currency_code': 'EUR', 'value': 1.0},
                     'description': 'xxxxxx: '
                                    'RE_xxxxxxx',
                     'payee': {'display_data': {'brand_name': 'xxxxx '
                                                              'xxxxxx',
                                                'business_email': 'xxxx@xxx.xx'},
                               'email_address': 'xxx@xx.xxx'},
                     'reference_id': 'RE_xxxxxxxx'}]}
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/addons/payment_paypal/models/payment_provider.py", line 102, in _paypal_make_request


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi, same problem here for me

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 3 25
2062
12
thg 4 25
10675
1
thg 2 25
487
2
thg 12 24
1240
1
thg 11 24
566