The form works fine with the config set to (auto), and using the default template. But now I've updated it, I get the following errors:
umbracoMacro
Error Loading Razor Script (file: BrainTree Payment Form) Sequence contains no elements at NHibernate.Linq.DefaultQueryProvider.ExecuteQuery(NhLinqExpression nhLinqExpression, IQuery query, NhLinqExpression nhQuery) at NHibernate.Linq.DefaultQueryProvider.Execute(Expression expression) at NHibernate.Linq.DefaultQueryProvider.Execute[TResult](Expression expression) at System.Linq.Queryable.Single[TSource](IQueryable`1 source, Expression`1 predicate) at ASP._Page_macroScripts_uCommerce_BrainTreePaymentForm_cshtml.Execute() in \macroScripts\uCommerce\BrainTreePaymentForm.cshtml:line 8 at System.Web.WebPages.WebPageBase.ExecutePageHierarchy() at System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors) at System.Web.WebPages.WebPage.ExecutePageHierarchy() at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) at umbraco.MacroEngines.RazorMacroEngine.ExecuteRazor(MacroModel macro, INode currentPage) at umbraco.MacroEngines.RazorMacroEngine.Execute(MacroModel macro, INode currentPage)
0.140549
0.009866
macro
Error loading MacroEngine script (file: /uCommerce/BrainTreePaymentForm.cshtml, Type: '' Sequence contains no elements at NHibernate.Linq.DefaultQueryProvider.ExecuteQuery(NhLinqExpression nhLinqExpression, IQuery query, NhLinqExpression nhQuery) at NHibernate.Linq.DefaultQueryProvider.Execute(Expression expression) at NHibernate.Linq.DefaultQueryProvider.Execute[TResult](Expression expression) at System.Linq.Queryable.Single[TSource](IQueryable`1 source, Expression`1 predicate) at ASP._Page_macroScripts_uCommerce_BrainTreePaymentForm_cshtml.Execute() in \macroScripts\uCommerce\BrainTreePaymentForm.cshtml:line 8 at System.Web.WebPages.WebPageBase.ExecutePageHierarchy() at System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors) at System.Web.WebPages.WebPage.ExecutePageHierarchy() at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) at umbraco.MacroEngines.RazorMacroEngine.ExecuteRazor(MacroModel macro, INode currentPage) at umbraco.MacroEngines.RazorMacroEngine.Execute(MacroModel macro, INode currentPage) at umbraco.macro.loadMacroScript(MacroModel macro) at umbraco.macro.renderMacro(Hashtable pageElements, Int32 pageId)
It's basically failing because no new entries are placed into the uCommercePaymentProperty table (and related) for the payment
If it's working with the default HTML template I assume that it might be because something was removed or renamed in the new template. Do you have all the keys represented in the new template ##EXPMONTH## and so forth?
My local config does have those values, but I removed them to protect the innocent...
I actually ended up changing this to a custom Braintree S2S provider because we had requirements to customise the checkout flow more than the default TR method allows (combining payment page with other information, server-side validation, etc) - so this is no longer an issue.
Looking back through source control (for the benefit of others that might stumble upon this question), and I can't see there being any changes to the template from the default, other than removing the html/body tags to fit into the rest of the page.
Integrating BrainTree payment into template not working
I'm following the instructions here for 'Integrate the Payment Form into Your Own Page'
http://www.publicvoid.dk/SetupUCommerceToIncludeBraintreePaymentsAsAPaymentMethod.aspx
The form works fine with the config set to (auto), and using the default template. But now I've updated it, I get the following errors:
at NHibernate.Linq.DefaultQueryProvider.Execute(Expression expression)
at NHibernate.Linq.DefaultQueryProvider.Execute[TResult](Expression expression)
at System.Linq.Queryable.Single[TSource](IQueryable`1 source, Expression`1 predicate)
at ASP._Page_macroScripts_uCommerce_BrainTreePaymentForm_cshtml.Execute() in \macroScripts\uCommerce\BrainTreePaymentForm.cshtml:line 8
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
at System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors)
at System.Web.WebPages.WebPage.ExecutePageHierarchy()
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
at umbraco.MacroEngines.RazorMacroEngine.ExecuteRazor(MacroModel macro, INode currentPage)
at umbraco.MacroEngines.RazorMacroEngine.Execute(MacroModel macro, INode currentPage)
Sequence contains no elements
at NHibernate.Linq.DefaultQueryProvider.ExecuteQuery(NhLinqExpression nhLinqExpression, IQuery query, NhLinqExpression nhQuery)
at NHibernate.Linq.DefaultQueryProvider.Execute(Expression expression)
at NHibernate.Linq.DefaultQueryProvider.Execute[TResult](Expression expression)
at System.Linq.Queryable.Single[TSource](IQueryable`1 source, Expression`1 predicate)
at ASP._Page_macroScripts_uCommerce_BrainTreePaymentForm_cshtml.Execute() in \macroScripts\uCommerce\BrainTreePaymentForm.cshtml:line 8
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
at System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors)
at System.Web.WebPages.WebPage.ExecutePageHierarchy()
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
at umbraco.MacroEngines.RazorMacroEngine.ExecuteRazor(MacroModel macro, INode currentPage)
at umbraco.MacroEngines.RazorMacroEngine.Execute(MacroModel macro, INode currentPage)
at umbraco.macro.loadMacroScript(MacroModel macro)
at umbraco.macro.renderMacro(Hashtable pageElements, Int32 pageId)
It's basically failing because no new entries are placed into the uCommercePaymentProperty table (and related) for the payment
Braintree config
BrainTreePaymentForm.cshtml
The step before seems to have the purchase order completed successfully, and requests the payment..
What am I missing?
Many thanks,
Kevin.
Hi Kevin,
If it's working with the default HTML template I assume that it might be because something was removed or renamed in the new template. Do you have all the keys represented in the new template ##EXPMONTH## and so forth?
Also I would expect merchant id to have a value.
Hi Soren - thanks for the reply :)
My local config does have those values, but I removed them to protect the innocent...
I actually ended up changing this to a custom Braintree S2S provider because we had requirements to customise the checkout flow more than the default TR method allows (combining payment page with other information, server-side validation, etc) - so this is no longer an issue.
Looking back through source control (for the benefit of others that might stumble upon this question), and I can't see there being any changes to the template from the default, other than removing the html/body tags to fit into the rest of the page.
is working on a reply...