Pokaż
Ignoruj:
Data:
2009-12-15 14:06:23 (16 years ago)
Autor:
alina
Opis:

re #215 testy i male przerobki (zmiana logo itp.)

Pliki:
1 zmodyfikowane

Legenda:

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

    r951 r952  
    11using System; 
    22using System.Web; 
    3 using Platnosci.Core.Linq; 
    4 using System.Configuration; 
    5 using Platnosci.Core.Interface; 
    63using System.Net; 
    74using System.IO; 
    85using System.Linq; 
    96using System.Web.Mvc; 
     7using System.Configuration; 
     8using Platnosci.Core.Linq; 
     9using Platnosci.Core.Interface; 
    1010 
    1111namespace Platnosci.Models 
     
    2020        { 
    2121            _repPayment = repPayment; 
    22             _funkcjePlatnosci = new FunkcjePlatnosci(); 
     22            _funkcjePlatnosci = new FunkcjePlatnosci(_repPayment); 
    2323        } 
    2424 
     
    4141        public Merchant CreateMerchantData(vPlatnosciEcard invoice, Payer payer, string lang, string sessionId) 
    4242        { 
     43            var merchant = new Merchant(); 
     44            
    4345            var waluta = _funkcjePlatnosci.SetAmount(invoice); 
    44             var newPayment = _funkcjePlatnosci.CreateAndAddNewPyment(invoice, waluta, payer, _repPayment, sessionId); 
     46            var newPayment = _funkcjePlatnosci.CreateAndAddNewPyment(invoice, waluta, payer, sessionId); 
    4547 
    46             var merchant = new Merchant(); 
    4748            merchant.SystemKsiegowy = invoice.SystemKsiegowyId.ToString(); 
    4849            if (ConfigurationManager.AppSettings["wersja"] == "TEST") 
     
    6667            merchant.LinkOk = linkOk; 
    6768            merchant.LinkFail = linkFail; 
     69 
     70            if (merchant != null) merchant.IsValid(); 
    6871 
    6972            return merchant;