MultiSafepay / magento2

MultiSafepay plugin for Magento 2
Open Software License 3.0
19 stars 8 forks source link

Wrong price is calculated #30

Closed FryingDutch closed 2 years ago

FryingDutch commented 2 years ago

Describe the bug I have a product, which has a qty of 1000. When the customer wants to pay, everything seems normal. However, when looking at the invoice afterwards, it takes the base product price, and multiplies this again by its qty, so times a 1000. (It is a fixed price per 1000). When I try this at my staging enviroment with a test API key, I am even asked to pay this weird price at the Test Payment enviroment (The fixed price x the qty).

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior I expect the fixed price to be shown on the invoice.

Additional context Add any other context about the problem here.

FryingDutch commented 2 years ago

If I could just get a pointer to where in the code the quantity check takes place, that would already be mucho helpfull

vinodsowdagar commented 2 years ago

Hi @FryingDutch ,

Thank you for the report.

We are retrieving the quantity from the created order item via the getQtyOrdered function. You can see how we retrieve it inside the magento2-core plugin: Model/Api/Builder/OrderRequestBuilder/ShoppingCartBuilder/OrderItemBuilder.php

In the meantime i have added a task to the backlog to investigate and reproduce this issue. Once i know more i will let you know

vinodsowdagar commented 2 years ago

Hi @FryingDutch ,

We have tried to reproduce this issue, but came to the conclusion that we do not have enough information yet. In order to better understand this issue and to provide more help, we would like to have the following information:

vinodsowdagar commented 2 years ago

Hi @FryingDutch ,

Were you able to make any progress on this issue? I am curious to know if you still need help. If so, please send us the required information so we can continue to investigate this.

vinodsowdagar commented 2 years ago

Hi @FryingDutch ,

I'm closing this issue due to inactivity. If you need more help, please feel free to reopen this ticket or create a new one.