Zbiór zmian 959 dla trunk/eCard
- Data:
- 2009-12-22 08:54:00 (16 years ago)
- Lokalizacja:
- trunk/eCard/eCardMVC
- Pliki:
-
- 1 dodane
- 5 zmodyfikowane
-
Platnosci.Tests/Platnosci.Tests.csproj (zmodyfikowane) (1 diff)
-
Platnosci.Tests/Web/eCardDataTests.cs (dodane)
-
Platnosci/App_GlobalResources/tlumaczenia.designer.cs (zmodyfikowane) (1 diff)
-
Platnosci/App_GlobalResources/tlumaczenia.resx (zmodyfikowane) (1 diff)
-
Platnosci/Controllers/MerchantController.cs (zmodyfikowane) (1 diff)
-
Platnosci/Models/eCardData.cs (zmodyfikowane) (3 diffs)
Legenda:
- Bez zmian
- Dodane
- Usunięte
-
trunk/eCard/eCardMVC/Platnosci.Tests/Platnosci.Tests.csproj
r954 r959 84 84 <Compile Include="Properties\AssemblyInfo.cs" /> 85 85 <Compile Include="TestRunner.cs" /> 86 <Compile Include="Web\eCardDataTests.cs" /> 86 87 <Compile Include="Web\FunkcjePlatnosciTests.cs" /> 87 88 <Compile Include="Web\MerchantControllerTests.cs" /> -
trunk/eCard/eCardMVC/Platnosci/App_GlobalResources/tlumaczenia.designer.cs
r954 r959 161 161 162 162 /// <summary> 163 /// Looks up a localized string similar to 'Invoice number'is required..163 /// Looks up a localized string similar to Invoice number is required.. 164 164 /// </summary> 165 165 internal static string err_faktura { -
trunk/eCard/eCardMVC/Platnosci/App_GlobalResources/tlumaczenia.resx
r954 r959 216 216 </data> 217 217 <data name="err_faktura" xml:space="preserve"> 218 <value> 'Invoice number'is required.</value>218 <value>Invoice number is required.</value> 219 219 </data> 220 220 <data name="err_logowanie" xml:space="preserve"> -
trunk/eCard/eCardMVC/Platnosci/Controllers/MerchantController.cs
r957 r959 53 53 return View("Error1", _funkcjePlatnosci.InitErrorViewData(_translateManager.Translate("tlumaczenia", "error_hash"), payer.Id_faktury)); 54 54 55 var adres = _eCardData.GetUrl(merchant); 55 var adres = _eCardData.GetUrl(merchant); 56 56 Response.Redirect(adres); 57 57 return new EmptyResult(); -
trunk/eCard/eCardMVC/Platnosci/Models/eCardData.cs
r957 r959 52 52 merchant.Payment = newPayment; 53 53 GetMerchantInfo(merchant); 54 SetHash(merchant);54 merchant.Hash = SetHash(merchant); 55 55 56 56 //przeslanie w linku ordernumber potrzebnego do wyswietlenia potwierdzenia … … 85 85 } 86 86 } 87 p rivate voidSetHash(Merchant merchant)87 public string SetHash(Merchant merchant) 88 88 { 89 if (merchant == null) 90 throw new ArgumentNullException("parametr merchant is null in SetHash method"); 91 89 92 var platnosc = _repPayment.Find(i => i.ORDERDESCRIPTION == merchant.Payment.ORDERDESCRIPTION && i.IDFaktury == merchant.Payment.IDFaktury && i.Data == merchant.Payment.Data).SingleOrDefault(); 90 93 91 if (platnosc == null || merchant == null) 92 { 94 if (platnosc == null) 93 95 merchant.Hash = HASH_ERROR_INFO; 94 }95 96 else 96 97 { … … 117 118 merchant.Hash = strResponse; 118 119 } 120 return merchant.Hash; 119 121 } 120 122 }
