The following is the error in stack trace regarding the above bug:-
Error: : Input string was not in a correct format.
Server Name: DPLD
Stacktrace: : at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at Smith.DNN.Modules.BuyNow.SqlDataProvider.AddStoreOrders(Int32 customerID, DateTime orderDate, Int32 payHistID, Decimal ShippingTotal, Decimal TaxTotal, Decimal HandlingCharge, String ShipFirstName, String ShipLastName, String ShipAddress1, String ShipAddress2, String ShipCity, String ShipState, String ShipZipcode, String ShipCountry, String Status, String ShipMethod, String AffiliateId, Int32 couponId, Decimal discount, Decimal memberDiscount, String memberRole, String PDTextbox, Decimal Surcharge, Int32 portalId, DateTime UDDate1, DateTime UDDate2, String saveDNNProfileField) at Smith.DNN.Modules.BuyNow.ProductsController.AddStoreOrders(StoreOrdersInfo objStoreOrders) at Smith.DNN.Modules.BuyNow.Confirm.AddStoreOrder(Int32 PayHistID, String orderStatus) at Smith.DNN.Modules.BuyNow.Confirm.ProcessStatus(PaymentStatusInfo status) at Smith.DNN.Modules.BuyNow.Confirm.Submit() at Smith.DNN.Modules.BuyNow.Confirm.btnSubmit_Click(Object sender, EventArgs e)