installed 1.8.3 on umbraco 7.2.6 and did a basic/simple setup (cash payment provider, 3 products) and copied the checkout process views and controllers from an other 1.8.0 installation.
during checkout i always get an expection when i call authorizePayment
Exception Details: System.FormatException: Input string was not in a correct format.
[HttpGet]
public ActionResult CustomerPurchaseAndProcessPayment()
{
var preparation = Basket.SalePreparation();
if (!preparation.IsReadyToInvoice()) return RedirectToUmbracoPage(BasketPageId);
// for cash providers we only want to authorize the payment
var paymentMethod = preparation.GetPaymentMethod();
IPaymentResult attempt = null;
if (Merchello.Core.Constants.ProviderKeys.Payment.CashPaymentProviderKey == paymentMethod.ProviderKey)
{
// Authorize the payment will save the invoice with an Invoice Number.
attempt = preparation.AuthorizePayment(preparation.GetPaymentMethod().Key);
}
else
{
// TODO wire in redirect to Credit Card view or PayPal ... etc.
throw new NotImplementedException();
}
return RenderConfirmationThankyou(attempt, preparation.GetBillToAddress().Email);
}
the class is pretty simple and copied from the rosetta sample store. worked without any troubles on a 1.8.0 store, but i can't get it to work with 1.8.3?
[FormatException: Input string was not in a correct format.]
Merchello.Core.Sales.SalePreparationBase.PrepareInvoice(IBuilderChain`1 invoiceBuilder) in c:\Working Repositories\GitHub\Merchello\src\Merchello.Core\Sales\SalePreparationBase.cs:332
Merchello.Core.Sales.SalePreparationBase.AuthorizePayment(IPaymentGatewayMethod paymentGatewayMethod, ProcessorArgumentCollection args) in c:\Working Repositories\GitHub\Merchello\src\Merchello.Core\Sales\SalePreparationBase.cs:359
Merchello.Web.Workflow.BasketSalePreparation.AuthorizePayment(IPaymentGatewayMethod paymentGatewayMethod, ProcessorArgumentCollection args) in c:\Working Repositories\GitHub\Merchello\src\Merchello.Web\Workflow\BasketSalePreparation.cs:39
Merchello.Core.Sales.SalePreparationBase.AuthorizePayment(Guid paymentMethodKey) in c:\Working Repositories\GitHub\Merchello\src\Merchello.Core\Sales\SalePreparationBase.cs:400
I believe I have the same problem on my installation (Umbraco 7.2.2 and Merchello 1.8.0)
System.FormatException: Input string was not in a correct format.
at Merchello.Core.Sales.SalePreparationBase.PrepareInvoice(IBuilderChain1 invoiceBuilder)
at Merchello.Core.Sales.SalePreparationBase.PrepareInvoice()
at Merchello.Bazaar.Factories.SalePreparationSummaryFactory.Build(SalePreparationBase preparation)
at Merchello.Bazaar.Factories.ViewModelFactory.CreateCheckoutConfirmation(RenderModel model, IBasket basket, IEnumerable 1 shippingRateQuotes, IEnumerable 1 paymentMethods, IEnumerable 1 paymentMethodUiInfos)
at Merchello.Bazaar.Controllers.BazaarCheckoutConfirmController.Index(RenderModel model)
I have encountered this problem when I change servers (from windows server 2008 R2 to 2012 R2). It was working fine on 2008 R2.
Error AuthorizePayment
Hi,
installed 1.8.3 on umbraco 7.2.6 and did a basic/simple setup (cash payment provider, 3 products) and copied the checkout process views and controllers from an other 1.8.0 installation.
during checkout i always get an expection when i call authorizePayment
Exception Details: System.FormatException: Input string was not in a correct format.
attempt = preparation.AuthorizePayment(preparation.GetPaymentMethod().Key);
the class is pretty simple and copied from the rosetta sample store. worked without any troubles on a 1.8.0 store, but i can't get it to work with 1.8.3?
any ideas?
thx a lot in advance,
Andreas
Here is the stack:
The code above works on 1.8.0 and umbraco 7.2.6
what do i have to change to get it work on 1.8.3?
Thx,
Andreas
Hi,
I believe I have the same problem on my installation (Umbraco 7.2.2 and Merchello 1.8.0)
I have encountered this problem when I change servers (from windows server 2008 R2 to 2012 R2). It was working fine on 2008 R2.
I believe is some kind of .NET GAC dependency.
Did you find the solution?
is working on a reply...