8 changed files with 95 additions and 40 deletions
@ -0,0 +1,24 @@ |
|||||
|
using System.Collections.Generic; |
||||
|
using Volo.Abp.DependencyInjection; |
||||
|
|
||||
|
namespace EShopOnAbp.PublicWeb.ServiceProviders; |
||||
|
|
||||
|
public class PaymentTypeProvider : ITransientDependency |
||||
|
{ |
||||
|
public List<PaymentType> GetPaymentTypes() |
||||
|
{ |
||||
|
return new List<PaymentType> |
||||
|
{ |
||||
|
new() {Id = 0, Name = "Demo", IconCss = "fa-credit-card demo", IsDefault = true}, |
||||
|
new() {Id = 1, Name = "Paypal", IconCss = "fa-cc-paypal paypal"} |
||||
|
}; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public class PaymentType |
||||
|
{ |
||||
|
public int Id { get; set; } |
||||
|
public string Name { get; set; } |
||||
|
public string IconCss { get; set; } |
||||
|
public bool IsDefault { get; set; } = false; |
||||
|
} |
||||
Loading…
Reference in new issue