We’re using DW version 19.0.0.4.
In the cart step 4 we have a checkbox you’ve to check to agree with the General Conditions.
We have client side javascript validation for this (just like in the bikez demo), but also want server side validation.
We’ve made a notification for Dynamicweb.Notifications.eCommerce.Order.Steps.Confimed.
That requests the posted value of the checkbox by using HttpContext.Current.Request.Form. If it’s not checked we throw an exception.
This works fine if we don’t use a paymentprovider.
But if we use a payment provider, the user is redirected from step 4 to the paymentprovider, and then redirected to step 5: the agreedWithCondition checkbox value isn’t posted, so you get an exception.
That’s logical, but not the wanted behavior. ;)
How can we implement server side validation for a checkbox General Conditions in step 4?