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; }
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; }
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); }
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); }