File: D:/HostingSpaces/TDijk1/erp-apps.eu/wwwroot/App_Code/GoPay/GoPaySystemCustomizationModule.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using CMS.SettingsProvider;
using CMS.Base;
/// <summary>
/// GoPay payment gateway
/// </summary>
[GoPaySystemCustomizationModuleLoader]
public partial class CMSModuleLoader
{
private class GoPaySystemCustomizationModuleLoaderAttribute : CMSLoaderAttribute
{
/// <summary>
/// Initializes the module
/// </summary>
public override void Init()
{
ClassHelper.OnGetCustomClass += GetCustomClass;
}
private static void GetCustomClass(object sender, ClassEventArgs e)
{
if (e.Object == null)
{
switch (e.ClassName.ToLower())
{
case "cms.ecommerce.gopaypaymentprovider":
e.Object = new CMS.Ecommerce.GoPayPaymentProvider();
break;
}
}
}
}
}