I need to apply ProductsAreInStock validation before Klarna payment to prevent selling of out of stock products. I added the method “prevalidate orders” in Klarna validation call back method. But “Klarna confirmation” method is getting executed before returning any valid value from validate method. Is there any way to resolve this issue ?
Validation requires that the call from Klarna can reach your server, so if you’re testing this locally you need to make sure there’s an accessible public URL for the site. You can use ngrok (or a similar tool) to open a tunnel for example. The callback also needs to return within 3 seconds.
By default, if the validation fails the user will be re-directed to the general error page.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.