Ejemplo n.º 1
0
        public GiftCardGateway PaymentCurrentGiftCardProcessor()
        {
            var gateway = GiftCardGateways.Find(GiftCardGateway);

            if (gateway == null)
            {
                gateway = new HccGiftCardGateway();
            }

            var settings = GiftCardSettingsGet(GiftCardGateway);

            gateway.BaseSettings.Merge(settings);

            return(gateway);
        }
Ejemplo n.º 2
0
        public void LoadEditor(string gatewayId)
        {
            Visible = true;
            var gateway = GiftCardGateways.Find(gatewayId);

            Editor = HccPartController.LoadGiftCardGatewayEditor(gateway.Name, Page) as HccGiftCardGatewayPart;

            if (Editor != null)
            {
                Editor.ID        = "GatewayEditor_" + gateway.Name;
                Editor.GatewayId = gateway.Id;
                phEditor.Controls.Clear();
                phEditor.Controls.Add(Editor);
                Editor.EditingComplete += Editor_EditingComplete;
                Editor.LoadData();
            }
            else
            {
                msg.ShowError(Localization.GetString("GatewayTypeError"));
            }
        }