跳至內容
選單
此問題已被標幟
1 回覆
1959 瀏覽次數

Hello,


I have Created new payment method when i click on pay now i get this message


////

Payment processing failed

Ok

Expecting value: line 1 column 1 (char 0)

/////


Help please

頭像
捨棄
最佳答案

Hi,

Did you try to checkout using the wire transfer acquirer? if not, just try that way and see if it throws any exception. 

If the wire transfer is working fine, check your acquirer configuration.

For more information, you can check the odoo logs too

Thanks

頭像
捨棄
作者

i have check and check cant get it to work, would you be so kind to take a look
https://github.com/YahyaKassem/payment_sadad

作者

You are right i found in the log this error

2024-02-18 20:55:26,710 542 ERROR mangrovesllc-test-v2-11813120 odoo.addons.payment_sadad.models.payment_provider: Invalid API request at https://api-s.sadad.qa/api/createInvoice with data:
{'amount': 862.5,
'callBackUrl': 'https://mangrovesllc-test-v2-11813120.dev.odoo.com/payment/sadad/return',
'clientEmail': 'admin@yourcompany.example.com',
'clientMobile': '+1 555-555-5555',
'clientName': 'Mitchell Admin',
'note': 'YourCompany',
'orderNumber': 'S00037-4',
'products': []}
Traceback (most recent call last):
File "/home/odoo/src/odoo/addons/payment_sadad/models/payment_provider.py", line 164, in _sadad_make_request
response.raise_for_status()
File "/usr/lib/python3/dist-packages/requests/models.py", line 943, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://api-s.sadad.qa/api/createInvoice
2024-02-18 20:55:26,711 542 ERROR mangrovesllc-test-v2-11813120 odoo.addons.payment_sadad.models.payment_provider: {"error":{"statusCode":500,"message":"Internal Server Error"}}
Traceback (most recent call last):
File "/home/odoo/src/odoo/addons/payment_sadad/models/payment_provider.py", line 164, in _sadad_make_request
response.raise_for_status()
File "/usr/lib/python3/dist-packages/requests/models.py", line 943, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://api-s.sadad.qa/api/createInvoice
2024-02-18 20:55:26,713 542 ERROR mangrovesllc-test-v2-11813120 odoo.http: Exception during request handling.
Traceback (most recent call last):
File "/home/odoo/src/odoo/addons/payment_sadad/models/payment_provider.py", line 164, in _sadad_make_request
response.raise_for_status()
File "/usr/lib/python3/dist-packages/requests/models.py", line 943, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://api-s.sadad.qa/api/createInvoice

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/odoo/src/odoo/odoo/http.py", line 2150, in __call__
response = request._serve_db()
File "/home/odoo/src/odoo/odoo/http.py", line 1722, in _serve_db
return service_model.retrying(self._serve_ir_http, self.env)
File "/home/odoo/src/odoo/odoo/service/model.py", line 133, in retrying
result = func()
File "/home/odoo/src/odoo/odoo/http.py", line 1749, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
File "/home/odoo/src/odoo/odoo/http.py", line 1953, in dispatch
result = self.request.registry['ir.http']._dispatch(endpoint)
File "/home/odoo/src/odoo/addons/website/models/ir_http.py", line 235, in _dispatch
response = super()._dispatch(endpoint)
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_http.py", line 222, in _dispatch
result = endpoint(**request.params)
File "/home/odoo/src/odoo/odoo/http.py", line 722, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "/home/odoo/src/odoo/addons/website_sale/controllers/main.py", line 2022, in shop_payment_transaction
return tx_sudo._get_processing_values()
File "/home/odoo/src/odoo/addons/payment/models/payment_transaction.py", line 477, in _get_processing_values
rendering_values = self._get_specific_rendering_values(processing_values)
File "/home/odoo/src/odoo/addons/payment_sadad/models/payment_transaction.py", line 67, in _get_specific_rendering_values
payment_link_data = self.provider_id._sadad_make_request('createInvoice', auth=id_token, payload=payload)
File "/home/odoo/src/odoo/addons/payment_sadad/models/payment_provider.py", line 172, in _sadad_make_request
raise ValidationError(_(detail['detail']))
KeyError: 'detail'

any clues

Did you try contacting the vendor from whom you purchased the app to sort out this issue?

作者

I am trying to make it my self not bought

相關帖文 回覆 瀏覽次數 活動
2
2月 24
2832
1
2月 23
1707
0
5月 21
1843
1
5月 25
3762
2
10月 23
56