Zbiór zmian 971 dla trunk/eCard/eCardMVC/Platnosci/Models/MerchantHelper.cs
- Data:
- 2009-12-23 11:59:36 (16 years ago)
- Pliki:
-
- 1 przeniesione
-
trunk/eCard/eCardMVC/Platnosci/Models/MerchantHelper.cs (przeniesione) (przeniesione from trunk/eCard/eCardMVC/Platnosci/Models/eCardData.cs) (2 diffs)
Legenda:
- Bez zmian
- Dodane
- Usunięte
-
trunk/eCard/eCardMVC/Platnosci/Models/MerchantHelper.cs
r970 r971 8 8 using adMoto.Payments.Core.Interfaces; 9 9 10 namespace Platnosci.Models10 namespace adMoto.Payments.Web.Models 11 11 { 12 public class eCardData12 public class MerchantHelper 13 13 { 14 14 public const string HASH_ERROR_INFO = "payment not exist"; 15 private readonly FunkcjePlatnosci _funkcjePlatnosci;15 private readonly PaymentsUtils _paymentsUtils; 16 16 private IRepository<PlatnosciEcard> _repPayment; 17 17 18 public eCardData(IRepository<PlatnosciEcard> repPayment)18 public MerchantHelper(IRepository<PlatnosciEcard> repPayment) 19 19 { 20 20 _repPayment = repPayment; 21 _ funkcjePlatnosci = new FunkcjePlatnosci(_repPayment);21 _paymentsUtils = new PaymentsUtils(_repPayment); 22 22 } 23 23 … … 43 43 var merchant = new Merchant(); 44 44 45 var waluta = _ funkcjePlatnosci.SetAmount(invoice);46 var newPayment = _ funkcjePlatnosci.CreateAndAddNewPyment(invoice, waluta, payer, sessionId);45 var waluta = _paymentsUtils.SetAmount(invoice); 46 var newPayment = _paymentsUtils.CreateAndAddNewPyment(invoice, waluta, payer, sessionId); 47 47 48 48 merchant.SystemKsiegowy = invoice.SystemKsiegowyId.ToString(); 49 49 50 50 #if DEBUG 51 //TODO: find better method to set SystemKsiegowy when testing or developing51 //TODO: find better method to set SystemKsiegowy when testing or developing 52 52 merchant.SystemKsiegowy = "2"; 53 53 #endif
