Exemplo n.º 1
0
        /// <summary>
        /// Commits taxes after an order is placed
        /// </summary>
        /// <param name="order">The order that was placed</param>
        /// <remarks>This step is necessary for some providers such as CertiTAX for the purposes
        /// of tax reporting.  The native AbleCommerce provider does not require this step.</remarks>
        internal static void CommitTaxes(Order order)
        {
            TaxGatewayCollection taxGateways = Token.Instance.Store.TaxGateways;

            foreach (TaxGateway taxGateway in taxGateways)
            {
                ITaxProvider provider = taxGateway.GetProviderInstance();
                if (provider != null)
                {
                    provider.Commit(order);
                }
            }
        }