bleroy / Nwazet.Commerce

Idiomatic commerce module for Orchard CMS.
BSD 3-Clause "New" or "Revised" License
26 stars 21 forks source link

Stripe Pay Confirmation #75

Closed bleroy closed 8 years ago

bleroy commented 9 years ago

Originally reported by: Jon Veder (Bitbucket: jonvee, GitHub: jonvee)


Payment goes to stripe, but friendly orchrard error "Oops. Something went wrong ... sorry" 2015-05-29 00:53:51,321 [8] Orchard.Exceptions.DefaultExceptionPolicy - Default - An unexpected exception was caught https://mysite.loc/stripe/pay System.NullReferenceException: Object reference not set to an instance of an object. at Nwazet.Commerce.Services.StripeService.Charge(String token, Double amount) at Nwazet.Commerce.Controllers.StripeController.Pay(StripeCheckoutViewModel stripeData, String stripeToken, String next, String back) at lambda_method(Closure , ControllerBase , Object[] ) at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary2 parameters) at System.Web.Mvc.Async.AsyncControllerActionInvoker.b39(IAsyncResult asyncResult, ActionInvocation innerInvokeState) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult2.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase1.End() at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.b3d() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>cDisplayClass46.b3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>cDisplayClass46.b3f()


bleroy commented 9 years ago

Original comment by Bertrand Le Roy (Bitbucket: bleroy, GitHub: bleroy):


Fixed by 4a0131a257ba