Zbiór zmian 949 dla trunk/eCard/eCardMVC/Platnosci
- Data:
- 2009-12-11 16:57:08 (16 years ago)
- Lokalizacja:
- trunk/eCard/eCardMVC/Platnosci
- Pliki:
-
- 4 zmodyfikowane
-
Controllers/AccountController.cs (zmodyfikowane) (1 diff)
-
Controllers/MerchantController.cs (zmodyfikowane) (5 diffs)
-
Controllers/PlatnoscController.cs (zmodyfikowane) (1 diff)
-
Views/Platnosc/Form.aspx (zmodyfikowane) (1 diff)
Legenda:
- Bez zmian
- Dodane
- Usunięte
-
trunk/eCard/eCardMVC/Platnosci/Controllers/AccountController.cs
r948 r949 23 23 public AccountController() 24 24 { 25 _repository = new Repository<vPlatnosciEcard>(new DataContext 1());25 _repository = new Repository<vPlatnosciEcard>(new DataContext()); 26 26 FormsAuth = new FormsAuthenticationService(); 27 27 _funkcjePlatnosci = new FunkcjePlatnosci(); -
trunk/eCard/eCardMVC/Platnosci/Controllers/MerchantController.cs
r948 r949 28 28 public MerchantController() 29 29 { 30 _repVPayment = new Repository<vPlatnosciEcard>(new DataContext 1());31 _repPayment = new Repository<PlatnosciEcard>(new DataContext 1());30 _repVPayment = new Repository<vPlatnosciEcard>(new DataContext()); 31 _repPayment = new Repository<PlatnosciEcard>(new DataContext()); 32 32 _funkcjePlatnosci = new FunkcjePlatnosci(); 33 33 _translateManager = new Translation(); … … 79 79 linkOk += "/" + newPayment.IDFaktury + "?o=" + orderek; 80 80 81 if (merchant != null && !String.IsNullOrEmpty(merchant. merchntId))81 if (merchant != null && !String.IsNullOrEmpty(merchant.Id)) 82 82 SendRequest(newPayment, hash, merchant, linkFail, linkOk); 83 83 else … … 130 130 var dane = "&orderDescription=&amount=" + platnosc.AMOUNT; 131 131 dane += "¤cy=" + 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); 133 133 134 134 var bdata = System.Text.Encoding.ASCII.GetBytes(dane); … … 154 154 var dane = "&AMOUNT=" + m.AMOUNT + "&CURRENCY=" + m.CURRENCY + "&ORDERNUMBER=" + m.ORDERNUMBER; 155 155 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; 157 157 dane += "&LINKFAIL=" + linkfail + "&LINKOK=" + linkok + "&SESSIONID=" + m.SESSIONID; 158 158 Response.Redirect(adres + dane); … … 174 174 if (systemKs == "2") 175 175 { 176 merchant. merchntId = "171485000";177 merchant. merchantPassword = "ashSeth2";176 merchant.Id = "171485000"; 177 merchant.Password = "ashSeth2"; 178 178 } 179 179 else 180 180 { 181 merchant. merchntId = "170906000";182 merchant. merchantPassword = "JaYpqfs0";181 merchant.Id = "170906000"; 182 merchant.Password = "JaYpqfs0"; 183 183 } 184 184 return merchant; -
trunk/eCard/eCardMVC/Platnosci/Controllers/PlatnoscController.cs
r948 r949 21 21 public PlatnoscController() 22 22 { 23 _repVPayment = new Repository<vPlatnosciEcard>(new DataContext 1());24 _repPayment = new Repository<PlatnosciEcard>(new DataContext 1());25 _repConfirm = new Repository<PotwierdzeniaEcard>(new DataContext 1());23 _repVPayment = new Repository<vPlatnosciEcard>(new DataContext()); 24 _repPayment = new Repository<PlatnosciEcard>(new DataContext()); 25 _repConfirm = new Repository<PotwierdzeniaEcard>(new DataContext()); 26 26 _funkcjePlatnosci = new FunkcjePlatnosci(); 27 27 _translateManager = new Translation(); -
trunk/eCard/eCardMVC/Platnosci/Views/Platnosc/Form.aspx
r911 r949 13 13 <br/> 4. ValidationCode: <%=Html.TextBox("VALIDATIONCODE","000")%> 14 14 <br/> 5. APPROVALCODE: <%=Html.TextBox("APPROVALCODE","123")%> 15 <br/> 6. AUTHTIME: <%=Html.TextBox("AUTHTIME" )%>15 <br/> 6. AUTHTIME: <%=Html.TextBox("AUTHTIME", DateTime.Now)%> 16 16 <br/> 7. BIN: <%=Html.TextBox("BIN","1234")%> 17 17 <br/> 8. COMMTYPE: <%=Html.TextBox("COMMTYPE","anbjbj")%>
