I have an inquiry with gateway integration please, I'm using the following code to mark the order as canceled if the payment is failed.
But I wonder if this is the right way to handle rejected payment in Smart store @__@ ?
order.AuthorizationTransactionResult = "Declined";
order.PaymentStatus = PaymentStatus.Voided;
_orderService.UpdateOrder(order);
_orderProcessingService.CancelOrder(order, true);