Pokaż
Ignoruj:
Data:
2009-12-23 11:59:36 (16 years ago)
Autor:
marek
Opis:

re #215

Pliki:
1 przeniesione

Legenda:

Bez zmian
Dodane
Usunięte
  • trunk/eCard/eCardMVC/Platnosci/Models/MerchantHelper.cs

    r970 r971  
    88using adMoto.Payments.Core.Interfaces; 
    99 
    10 namespace Platnosci.Models 
     10namespace adMoto.Payments.Web.Models 
    1111{ 
    12     public class eCardData 
     12    public class MerchantHelper 
    1313    { 
    1414        public const string HASH_ERROR_INFO = "payment not exist"; 
    15         private readonly FunkcjePlatnosci _funkcjePlatnosci; 
     15        private readonly PaymentsUtils _paymentsUtils; 
    1616        private IRepository<PlatnosciEcard> _repPayment; 
    1717 
    18         public eCardData(IRepository<PlatnosciEcard> repPayment) 
     18        public MerchantHelper(IRepository<PlatnosciEcard> repPayment) 
    1919        { 
    2020            _repPayment = repPayment; 
    21             _funkcjePlatnosci = new FunkcjePlatnosci(_repPayment); 
     21            _paymentsUtils = new PaymentsUtils(_repPayment); 
    2222        } 
    2323 
     
    4343            var merchant = new Merchant(); 
    4444 
    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); 
    4747 
    4848            merchant.SystemKsiegowy = invoice.SystemKsiegowyId.ToString(); 
    4949 
    5050#if DEBUG 
    51     //TODO: find better method to set SystemKsiegowy when testing or developing 
     51            //TODO: find better method to set SystemKsiegowy when testing or developing 
    5252            merchant.SystemKsiegowy = "2"; 
    5353#endif