FIWARE-TMForum / Business-API-Ecosystem

The FIWARE/TMForum Business API Ecosystem allows the monetization of different kind of assets (both digital and physical) during the whole service life cycle, from offering creation to its charging, accounting and revenue settlement and sharing
https://business-api-ecosystem.rtfd.io/
GNU Affero General Public License v3.0
39 stars 22 forks source link

Internal Server Error: /charging/api/orderManagement/orders #68

Open marcap07 opened 10 months ago

marcap07 commented 10 months ago

Hi all, I am working with the last BAE version We got error trying to check out the product to complete the purchase. We got error "The server has failed processing your order". Here the log of the charging backend

INFO [2024-01-19 10:07:22,627]: (charging_engine) Resolving charging of type initial for order Order object (65aa9e3a45f4f0f6c02a3e08) INFO [2024-01-19 10:07:22,627]: (charging_engine) Resolving initial charges for order 526 DEBUG [2024-01-19 10:07:22,627]: (charging_engine) Processing contract 0 DEBUG [2024-01-19 10:07:22,627]: (price_resolver) Calculating price with {'single_payment': [{'value': '200.00', 'unit': 'one time', 'tax_rate': '20.00', 'duty_free': '166.67'}], 'alteration': {'type': 'discount', 'value': 5.0, 'period': 'one time', 'condition': {'operation': 'ge', 'value': '200'}}} DEBUG [2024-01-19 10:07:22,627]: (price_resolver) Processing alteration: {alteration} DEBUG [2024-01-19 10:07:22,628]: (price_resolver) Processed alteration OK DEBUG [2024-01-19 10:07:22,628]: (price_resolver) Calculated price with {'single_payment': [{'value': '200.00', 'unit': 'one time', 'tax_rate': '20.00', 'duty_free': '166.67'}], 'alteration': {'type': 'discount', 'value': 5.0, 'period': 'one time', 'condition': {'operation': 'ge', 'value': '200'}}}: Price: 190.00 | Duty_free: 158.34 DEBUG [2024-01-19 10:07:22,632]: (charging_engine) Transaction for item 0 appended INFO [2024-01-19 10:07:22,632]: (charging_engine) Starting charging process DEBUG [2024-01-19 10:07:22,632]: (rollback) Rolling back model creation: Order object (65aa9e3a45f4f0f6c02a3e08) DEBUG [2024-01-19 10:07:22,634]: (http) Building response for POST /charging/api/orderManagement/orders ERROR [2024-01-19 10:07:22,670]: (log) Internal Server Error: /charging/api/orderManagement/orders Internal Server Error: /charging/api/orderManagement/orders

Do you have experienced a similar issue before? Thanks Best Regard Marialuisa

fdelavega commented 10 months ago

Having a look at the logs it look like a failure in the connection with the payment.

Did you configure paypal for such a support?

marcap07 commented 10 months ago

Hi Francisco, thanks for you quick response. We will check paypal configuration parameters. Thank you Marialuisa