Пример #1
0
        public override void LoadData()
        {
            var settings = new TestGatewaySettings();

            settings.Merge(HccApp.CurrentStore.Settings.PaymentSettingsGet(GatewayId));

            chkAuthorizeFails.Checked = !settings.ResponseForHold;
            chkCaptureFails.Checked   = !settings.ResponseForCapture;
            chkChargeFails.Checked    = !settings.ResponseForCharge;
            chkRefundFails.Checked    = !settings.ResponseForRefund;
            chkVoidFails.Checked      = !settings.ResponseForVoid;
        }
Пример #2
0
        private void LoadData()
        {
            TestGatewaySettings settings = new TestGatewaySettings();

            settings.Merge(MyPage.MTApp.CurrentStore.Settings.PaymentSettingsGet(this.BlockId));

            this.chkAuthorizeFails.Checked = !settings.ResponseForHold;
            this.chkCaptureFails.Checked   = !settings.ResponseForCapture;
            this.chkChargeFails.Checked    = !settings.ResponseForCharge;
            this.chkRefundFails.Checked    = !settings.ResponseForRefund;
            this.chkVoidFails.Checked      = !settings.ResponseForVoid;
        }
Пример #3
0
        public override void SaveData()
        {
            var settings = new TestGatewaySettings();

            settings.Merge(HccApp.CurrentStore.Settings.PaymentSettingsGet(GatewayId));

            settings.ResponseForCapture = !chkCaptureFails.Checked;
            settings.ResponseForCharge  = !chkChargeFails.Checked;
            settings.ResponseForHold    = !chkAuthorizeFails.Checked;
            settings.ResponseForRefund  = !chkRefundFails.Checked;
            settings.ResponseForVoid    = !chkVoidFails.Checked;

            HccApp.CurrentStore.Settings.PaymentSettingsSet(GatewayId, settings);
            HccApp.AccountServices.Stores.Update(HccApp.CurrentStore);
        }
Пример #4
0
        private void SaveData()
        {
            TestGatewaySettings settings = new TestGatewaySettings();

            settings.Merge(MyPage.MTApp.CurrentStore.Settings.PaymentSettingsGet(this.BlockId));

            settings.ResponseForCapture = !this.chkCaptureFails.Checked;
            settings.ResponseForCharge  = !this.chkChargeFails.Checked;
            settings.ResponseForHold    = !this.chkAuthorizeFails.Checked;
            settings.ResponseForRefund  = !this.chkRefundFails.Checked;
            settings.ResponseForVoid    = !this.chkVoidFails.Checked;

            MyPage.MTApp.CurrentStore.Settings.PaymentSettingsSet(this.BlockId, settings);

            MyPage.MTApp.AccountServices.Stores.Update(MyPage.MTApp.CurrentStore);
        }