Hello,
When creating a Checkout handler, on the Redirect function, I need to store a GatewayResult xml received from a webservice.
I tried to change the order before and after the SetOrderComplete() call but with no success.
public override string Redirect(Order order)
{
/* if I set GatewayResult here, the SetOrderComplete() cleans it */
SetOrderComplete(order);
order.GatewayResult = "some result string here"
order.Save();
// Checkout done
CheckoutDone(order);
/* here the order has the GatewayResult value but after calling RedirectToCart() it cleans it and saves "<result />" string */
// Redirect to cart
RedirectToCart(order);
}
How can I save the gateway result on the order?
Thanks,
Diogo