示例#1
0
        private void LoadData()
        {
            CybersourceSOAPSettings settings = new CybersourceSOAPSettings();
            settings.Merge(MyPage.MTApp.CurrentStore.Settings.PaymentSettingsGet(this.BlockId));

            this.MerchantIdField.Text = settings.MerchantId;
            this.TransactionKeyField.Text = settings.TransactionKey;
        }
示例#2
0
        private void SaveData()
        {
            CybersourceSOAPSettings settings = new CybersourceSOAPSettings();
            settings.Merge(MyPage.MTApp.CurrentStore.Settings.PaymentSettingsGet(this.BlockId));

            settings.MerchantId = this.MerchantIdField.Text.Trim();
            settings.TransactionKey = this.TransactionKeyField.Text.Trim();

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

            MyPage.MTApp.AccountServices.Stores.Update(MyPage.MTApp.CurrentStore);
        }
示例#3
0
 public CybersourceSOAP()
 {
     Settings = new CybersourceSOAPSettings();
 }