HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
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;
                }
            }
        }
    }
}