View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007723 | module Unzer | General | public | 2024-09-20 09:00 | 2024-09-26 13:08 |
Reporter | Spritje | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | resolved | Resolution | fixed | ||
Product Version | 1.1.3 | ||||
Fixed in Version | 1.2.0 / 2.2.0 | ||||
Summary | 0007723: Payment methods cannot be used if in basic settings -> Enter item prices net is activated | ||||
Description | If "Enter item prices net" is activated in the basic settings, an error may occur in the Unzer module due to the different rounding of the shopping basket items in the shop and Unzer module (e.g. if you have an item in the shopping basket more than once). https://github.com/OXID-eSales/unzer-module/blob/2e09b71fd11bdd28feadddf2ab41d43ae43b57ea/src/Service/Unzer.php#L347 From this line on, the price of the basket items is calculated differently than in the shop for the shopping basket and this leads to problems when transferring to Unzer, so that the user cannot use the payment methods. | ||||
Steps To Reproduce | 0. Basic settings -> enter net article prices 1. Create articles as follows: Article A 8.57 Net, Article B 190.89 Net 2. Add 7 x article A and 1 x article B to the shopping basket 3. select payment method and click on Button "Pay Now" 4. -> Error Message "an error occurred. Please contact us for more information." | ||||
Additional Information | - es - ‘amountTotalGross":190.88 and if you use (amountPerUnitGross - amountDiscountPerUnitGross) * quantity. ((8.57 - 0) * 7 ) + ( ( 130.9 - 0) * 1 ) = (7 times article at 8.57 + 1 time article at 130.9 = 190.89) If you do the maths, you get 190.89 => So we pass the prices here with a difference of 1 cent Unzer compares these values (although Unzer does not seem to use the individual price items at all). This is sent to Unzer and then there is this response: Response: (400) {‘id’: ‘p-err-047fa8f4f33643f5b43b48468ca’, ‘isSuccess’:false, ‘isPending’:false, ‘isResumed’:false, ‘isError’:true, ‘url’: ‘https://api. unzer.com/v2/baskets‘,’timestamp‘:’2024-09-18 15:27:15‘,’traceId‘:’83db5fd94d252022ae45337ce400d4a9‘,’errors‘:[{’code‘:’API.600 .410.062‘, “merchantMessage”: “Basket ”’totalValueGross‘’ does not equals sum of (amountPerUnitGross - amountDiscountPerUnitGross) * quantity.’, “customerMessage”: ’An error occurred. Please contact us for more information."}]} | ||||
Tags | No tags attached. | ||||