/// <summary> /// The get checkout manager. /// </summary> /// <param name="basket"> /// The basket. /// </param> /// <param name="settings"> /// The checkout context version change settings. /// </param> /// <returns> /// The <see cref="ICheckoutManagerBase"/>. /// </returns> public static ICheckoutManagerBase GetCheckoutManager(this IBasket basket, ICheckoutContextSettings settings) { return new BasketCheckoutManager(basket.CreateCheckoutContext(MerchelloContext.Current, settings)); }
/// <summary> /// Gets a <see cref="ICheckoutManagerBase"/> for the basket. /// </summary> /// <param name="basket"> /// The basket. /// </param> /// <param name="merchelloContext"> /// The merchello Context. /// </param> /// <param name="settings"> /// The checkout context version change settings. /// </param> /// <returns> /// The <see cref="ICheckoutManagerBase"/>. /// </returns> internal static ICheckoutManagerBase GetCheckoutManager(this IBasket basket, IMerchelloContext merchelloContext, ICheckoutContextSettings settings) { return new BasketCheckoutManager(basket.CreateCheckoutContext(merchelloContext, settings)); }