static Logger logger = Logger.getLogger(PsiGateEngine.class);
public PsiGateEngine(Site site, Long paymentGatewayId) throws Exception {
this.site = site;
PaymentGateway paymentGateway = PaymentGatewayDAO.load(site.getSiteId(), paymentGatewayId);
PSIGate psiGate = (PSIGate) Utility.joxUnMarshall(PSIGate.class, paymentGateway.getPaymentGatewayData());
String value = "";
SiteDomainParamBean siteDomainParamBean = SiteDomainDAO.getSiteDomainParamBean(site.getSiteDomainDefault().getSiteDomainLanguage(),
site.getSiteDomainDefault().getSiteDomainLanguage());
storeId = psiGate.getStoreId();
passphrase = psiGate.getPassPhrase();
environment = psiGate.getEnvironment();
bname = siteDomainParamBean.getBusinessContactName();
bcompany = siteDomainParamBean.getBusinessCompany();
baddress1 = siteDomainParamBean.getBusinessAddress1();
baddress2 = siteDomainParamBean.getBusinessAddress2();