Openbravo Issue Tracking System - Retail Modules
View Issue Details
0053401Retail ModulesWeb POSpublic2023-09-06 13:572023-09-22 06:52
sofidossant 
sofidossant 
normalmajoralways
closedno change required 
5
RR21Q4 
 
guillermogil
No
0053401: Error while importing org.openbravo.base.exception.OBException: paymentData attached to payment
When the json is very big we have the following error while importing
org.openbravo.base.exception.OBException: paymentData attached to payment 04810000450 - 08-30-2023 - GT Final Consumer - 120.00 is not a valid JSON.
at org.openbravo.retail.posterminal.OrderLoader.processPayments(OrderLoader.java:1826)
at org.openbravo.retail.posterminal.OrderLoader.handlePayments(OrderLoader.java:1484)

Explication:
https://www.youtube.com/watch?v=vF9Bkk19wRY&ab_channel=CristianAdrian%7CPracticsBS [^]
in the webpos
Make a sale of many products, and many payments.
Make a cancellation of a card payment in the sale.
And make several payments

In this part, the receipt is added, and it generates that the payment part is very large and generates the ewi

 providerinstance
      .processPayment({
        receipt: receipt,
        currency: currency,
        amount: amount,
        refund: refund,
        providerGroup: providerGroup,
        attributes: attributes
      })
No tags attached.
Issue History
2023-09-06 13:57sofidossantNew Issue
2023-09-06 13:57sofidossantAssigned To => Retail
2023-09-06 13:57sofidossantTriggers an Emergency Pack => No
2023-09-06 14:13PracticsIssue Monitored: Practics
2023-09-07 08:02guillermogilAssigned ToRetail => gaboflash
2023-09-15 00:48hgbotNote Added: 0154873
2023-09-15 00:49hgbotNote Added: 0154874
2023-09-15 00:49hgbotNote Added: 0154875
2023-09-15 00:49hgbotNote Added: 0154876
2023-09-18 06:10guillermogilNote Added: 0154915
2023-09-18 06:10guillermogilStatusnew => feedback
2023-09-18 06:12hgbotNote Added: 0154916
2023-09-18 06:12hgbotNote Added: 0154917
2023-09-18 06:12hgbotNote Added: 0154918
2023-09-18 06:12hgbotNote Added: 0154919
2023-09-19 06:05guillermogilAssigned Togaboflash => sofidossant
2023-09-19 06:12hgbotNote Added: 0154967
2023-09-22 06:48hgbotNote Added: 0155121
2023-09-22 06:52guillermogilReview Assigned To => guillermogil
2023-09-22 06:52guillermogilNote Added: 0155122
2023-09-22 06:52guillermogilStatusfeedback => closed
2023-09-22 06:52guillermogilResolutionopen => no change required

Notes
(0154873)
hgbot   
2023-09-15 00:48   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.asyncpayprovider/-/merge_requests/24 [^]
(0154874)
hgbot   
2023-09-15 00:49   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.ingenicotsiprovider/-/merge_requests/2 [^]
(0154875)
hgbot   
2023-09-15 00:49   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.adyenprovider/-/merge_requests/30 [^]
(0154876)
hgbot   
2023-09-15 00:49   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1341 [^]
(0154915)
guillermogil   
2023-09-18 06:10   
We have been trying to reproduce the behavior and we have not been able to.
Can you provide the implementation that it is failing? Maybe we are checking the async provider and lagacy it being used.
Also, why are we getting an Invalid JSON due to size? is it a valid JSON? Can you share it too?
(0154916)
hgbot   
2023-09-18 06:12   
Merge request closed: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1341 [^]
(0154917)
hgbot   
2023-09-18 06:12   
Merge request closed: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.adyenprovider/-/merge_requests/30 [^]
(0154918)
hgbot   
2023-09-18 06:12   
Merge request closed: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.ingenicotsiprovider/-/merge_requests/2 [^]
(0154919)
hgbot   
2023-09-18 06:12   
Merge request closed: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.asyncpayprovider/-/merge_requests/24 [^]
(0154967)
hgbot   
2023-09-19 06:12   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1348 [^]
(0155121)
hgbot   
2023-09-22 06:48   
Merge request closed: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1348 [^]
(0155122)
guillermogil   
2023-09-22 06:52   
Finally the problem was on the implementation of the provider for the customer.
It was receiving a list of properties (receipt among them) to use them for the processing of the payment and it was being returned on the resolve of the promise.

On the resolve it should be sent the object desired to be used and saved not all the entry parameters plus the new payment information.