public override string GetTemplate(NBrightInfo cartInfo) { var info = ProviderUtils.GetProviderSettings("NBrightPayPalpayment"); var templ = ProviderUtils.GetTemplateData(info.GetXmlProperty("genxml/textbox/checkouttemplate")); return(templ); }
override protected void OnInit(EventArgs e) { base.OnInit(e); try { _ctrlkey = "nbrightpaypalpayment"; _info = ProviderUtils.GetProviderSettings(_ctrlkey); var rpDataHTempl = ProviderUtils.GetTemplateData("settings.html"); rpDataH.ItemTemplate = NBrightBuyUtils.GetGenXmlTemplate(rpDataHTempl, StoreSettings.Current.Settings(), PortalSettings.HomeDirectory); } catch (Exception exc) { //display the error on the template (don;t want to log it here, prefer to deal with errors directly.) var l = new Literal(); l.Text = exc.ToString(); Controls.Add(l); } }