Your able to select the type of payment and then render the the respective payment form? Or do you mean, when you select the payment form you see this?
@using System.Web.Mvc.Html
@using Merchello.FastTrack.Ui
@model Merchello.Core.Gateways.GatewayMethodUiAttribute
@{
switch (Model.Alias)
{
case "CashPaymentMethod":
@Html.Action("PaymentForm", "CashPayment", new { area = "FastTrack" })
break;
case "BrainTree.StandardTransaction":
@Html.Action("PaymentForm", "BraintreeStandardCc", new { area = "FastTrack" })
break;
case "BrainTree.PayPal.OneTime":
@Html.Action("PaymentForm", "BraintreePayPal", new { area = "FastTrack" })
break;
case "PayPal.ExpressCheckout":
@Html.Action("PaymentForm", "PayPalExpressPayment", new { area = "Merchello" })
break;
}
}
FastTrack error on payment form
Hi,
Running Umbraco 7.5.3, Merchello and FT 2.2.1.
I get right through the checkout process, but after hitting save on the "Cash" payment method I get:
Edit: Same thing happens with Paypal method.
Thanks, Henry
Hi Henry,
That looks like an error in the view.
Your able to select the type of payment and then render the the respective payment form? Or do you mean, when you select the payment form you see this?
Hi Rusty,
It's happening on the "/checkout/payment" page. So I am able to select the payment type, but when I click save it's throwing up the error.
I haven't changed any of the view files so far so everything should be default FastTrack.
Cheers!
In the back office, what view is the Payment page set to render? Also what is your models builder setting? LiveMode, Dll, ... ?
The payment page is set to the FtPayment template.
Model Builder set to LiveDll.
Your FtPayment view should have an inherits line like:
Hi Rusty,
Views/FtPayment.cshtml:
App_Plugins/FastTrack/Views/CheckoutPaymentMethod/ResolvePayment.cshtml
App_Plugins/FastTrack/Views/CashPayment/PaymentForm.cshtml
Does that all seem correct to you? I've completely removed FastTrack and installed it again and it's throwing up the same error.
Thanks for your help!
Moved the CashPayment views from App_Plugin/FastTrack directly into my views and that seems to have fixed it - so a solution I guess?
I'll double check. That looks like a routing glitch somewhere - have not seen it myself, but I'll review again.
is working on a reply...