public string CancelOrder(
            ref AmazonPaymentsOrderTrackingDetail orderTrackingDetail,
            int orderNumber)
        {
            var closeOrderResponse = ApiProvider.CloseOrder(orderTrackingDetail.OrderReference.Id);

            if (closeOrderResponse == null)
            {
                return(AppLogic.GetString("gateway.amazonpayments.errorclosingorder"));
            }

            return(AppLogic.ro_OK);
        }
Exemplo n.º 2
0
        public string CancelOrder(
            ref AmazonPaymentsOrderTrackingDetail orderTrackingDetail,
            int orderNumber)
        {
            var closeOrderResponse = ApiProvider.CloseOrder(orderTrackingDetail.OrderReference.Id);

            if (closeOrderResponse == null)
            {
                return("Error closing order. Order was not created.");
            }

            return(AppLogic.ro_OK);
        }