/// <summary> /// Gets a collection of all payment methods that are allowed in the current payment country and payment country region. /// </summary> /// <param name="storeId">Id of the store.</param> /// <param name="onlyAllowed">If <c>true</c> - only payment methods allowed in the current session state will be returned.</param> /// <returns>A collection of payment methods objects.</returns> public static IEnumerable <PaymentMethod> GetPaymentMethods(long storeId, bool onlyAllowed = true) { return(TeaCommerceHelper.GetPaymentMethods(storeId, onlyAllowed)); }