Hi all, I am having an issue with non-shippable goods such as gift cards and paying via Woldpay.
I can successfully pass any shippable product to WP, process the transaction and be returned to my site with success; the problem I have is when the product is non-shippable I am not passing the correct address information over to WP and an error is generated by WP.
Has anyone else experienced this issue OR has already fixed it?
If I make a product non-shippable (such as a downloadable file) then WP doesn't work. make it shippable and it works fine. I'm guessing it sends the empty shipping address rather than the billing address???
Hiya The code firstly appends the Billing Address then there is check to see if Shipped and if so it appends the Shipping Address as well as below. I can't see anything immediatly wrong - this is not one I have used so not sure what the problem is without running in debug. A
Thanks Yidna, You pointed me to the bit of code which had the problem ... well, 4 lines before where you copied from. The problem is with the line: remotePostHelper.Add("withDelivery", "true");
which tells Worldpay to always expect the delivery address, so when ShippingStatusEnum.ShippingNotRequired is true and the delivery information is not sent ... there is a problem.
I've removed that line and added it into the shipping test code as follows: