Developer forum

Forum » Ecommerce - Standard features » DIBS Easy Checkout fails when discount line is applied (from NAV)

DIBS Easy Checkout fails when discount line is applied (from NAV)

Martin Grønbekk Moen
Martin Grønbekk Moen
Reply

Anyone else experienced problems with the DIBS Easy Checkout when discount is applied?
We get this error from DIBS whenever someone tries to make a payment with discounted products.

Payment request failed with following errors: { "order.Items[1].TaxRate": [ "TaxRate must be greater than or equal to zero" ] }

It looks like Dynamicweb is sending a negative number in the TaxRate field.
Dont know if this has anything to do with discounts being handled from the NAV integration, or if it is generally discounts failing with DIBS Easy.

Also, where can I see what is being sent into DIBS? The templates does not contain anything, as far as I can see. So I guess this is handled in the backend?


Replies

 
Nicolai Pedersen
Reply

Hi Martin

Seems like it is related to the VAT percent of the discount line on the order. See attachment.

Taxrate is the vat percent. When calculating the normal discount in DW, the vat percent is not negative. Could be that the OrderLinePriceVATPercent column has a negative number when coming back from NAV. Can you check how those orderlines look like?

BR Nicolai

Capture.JPG
 
Martin Grønbekk Moen
Martin Grønbekk Moen
Reply

This is the order line:

This is the discount orderline:

 
Nicolai Pedersen
Reply

Looks correct. That looks like what is coming in and out of NAV. What about what is in the DB?

Anything custom in your priceprovider?

And what version is this?

 
Martin Grønbekk Moen
Martin Grønbekk Moen
Reply

Nothing custom, and the version is 9.9.1. Have asked support to update to 9.9.5.
Have also created a support task for this issue (CAS-15401-F6T8S6) with more information about the solution. It is hosted by Dynamicweb. 

 
Martin Grønbekk Moen
Martin Grønbekk Moen
Reply

Have you had the chance to look into this? Not heard anything related to CAS-15401-F6T8S6 either.

 

You must be logged in to post in the forum