Pokaż
Ignoruj:
Data:
2009-12-11 16:57:08 (16 years ago)
Autor:
marek
Opis:

re #215 - drobny refactoring

Pliki:
1 zmodyfikowane

Legenda:

Bez zmian
Dodane
Usunięte
  • trunk/eCard/eCardMVC/Platnosci/Controllers/MerchantController.cs

    r948 r949  
    2828        public MerchantController() 
    2929        { 
    30             _repVPayment = new Repository<vPlatnosciEcard>(new DataContext1()); 
    31             _repPayment = new Repository<PlatnosciEcard>(new DataContext1()); 
     30            _repVPayment = new Repository<vPlatnosciEcard>(new DataContext()); 
     31            _repPayment = new Repository<PlatnosciEcard>(new DataContext()); 
    3232            _funkcjePlatnosci = new FunkcjePlatnosci(); 
    3333            _translateManager = new Translation(); 
     
    7979            linkOk += "/" + newPayment.IDFaktury + "?o=" + orderek; 
    8080 
    81             if (merchant != null && !String.IsNullOrEmpty(merchant.merchntId)) 
     81            if (merchant != null && !String.IsNullOrEmpty(merchant.Id)) 
    8282                SendRequest(newPayment, hash, merchant, linkFail, linkOk); 
    8383            else  
     
    130130            var dane = "&orderDescription=&amount=" + platnosc.AMOUNT; 
    131131            dane += "&currency=" + platnosc.CURRENCY; 
    132             dane += string.Format("&merchantId={0}&password={1}", merchant.merchntId, merchant.merchantPassword); 
     132            dane += string.Format("&merchantId={0}&password={1}", merchant.Id, merchant.Password); 
    133133 
    134134            var bdata = System.Text.Encoding.ASCII.GetBytes(dane); 
     
    154154            var dane = "&AMOUNT=" + m.AMOUNT + "&CURRENCY=" + m.CURRENCY + "&ORDERNUMBER=" + m.ORDERNUMBER; 
    155155            dane += "&NAME=" + m.NAME + "&SURNAME=" + m.SURNAME + "&LANGUAGE=" + m.LANGUAGE + "&CHARSET=ISO-8859-2"; 
    156             dane += "&COUNTRY=616&PAYMENTTYPE=CARDS&JS=1&HASH=" + hash + "&MERCHANTID=" + merchant.merchntId + "&AUTODEPOSIT=" + m.AUTODEPOSIT; 
     156            dane += "&COUNTRY=616&PAYMENTTYPE=CARDS&JS=1&HASH=" + hash + "&MERCHANTID=" + merchant.Id + "&AUTODEPOSIT=" + m.AUTODEPOSIT; 
    157157            dane += "&LINKFAIL=" + linkfail + "&LINKOK=" + linkok + "&SESSIONID=" + m.SESSIONID; 
    158158            Response.Redirect(adres + dane); 
     
    174174            if (systemKs == "2") 
    175175            { 
    176                 merchant.merchntId = "171485000"; 
    177                 merchant.merchantPassword = "ashSeth2"; 
     176                merchant.Id = "171485000"; 
     177                merchant.Password = "ashSeth2"; 
    178178            } 
    179179            else 
    180180            { 
    181                 merchant.merchntId = "170906000"; 
    182                 merchant.merchantPassword = "JaYpqfs0"; 
     181                merchant.Id = "170906000"; 
     182                merchant.Password = "JaYpqfs0"; 
    183183            }               
    184184            return merchant;