Thanks Abdulla and Sumit, This should work for me.
Regards, Prashant -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Abdullah Shaikh Sent: Friday, December 04, 2009 3:23 PM To: [email protected] Subject: Re: order re-submission ! Prashant, Which payment gateway are you using ? Is it the one from ofbiz itself or have you implemented your own ? What you need to do is when the payment fails you need to set the order id to null in request, request.setAttribute("orderId", null), so that ofbiz creates a new order, because when an order fails its not updated again but a new order is created in its place. - Abdullah On Fri, Dec 4, 2009 at 3:12 PM, Prashant Punekar < [email protected]> wrote: > Hi Sumit, > > The order is already in created state before even hitting the payment > service. > So if the payment fails and I call the createOrder service again (for > resubmission) it will says the ordered exsist and will not allow us to > create the same order again. Is my understanding correct or I am doing > something wrong here? > > Do I need to update the order rather than creating ? Does ofbiz provide any > service for updating the order? > > Regards, > Prashant > > -----Original Message----- > From: Sumit Pandit [mailto:[email protected]] > Sent: Friday, December 04, 2009 8:30 AM > To: [email protected] > Cc: Sumit Pandit > Subject: Re: order re-submission ! > > Hi Prashant, > > During chceckout you have to provide CC information, if it fails then it > does not allow you to proceed. And hence order can not submitted. Can you > please reproduce it on Demo server - > eCommerce - http://demo.ofbiz.org/ecommerce/control/main OR > BackEnd order manager - http://demo.ofbiz.org/ordermgr/control/main > > And BTW if you want to resubmit the order then please look at following > > https://demo.ofbiz.org/ordermgr/control/orderview?orderId=WSCO10000 - > (user name/password = admin/ofbiz) > Here you can find a "New Order" button, you can place a new order from > here. > > -- > Thanks And Regards > Sumit Pandit > > > > On Dec 3, 2009, at 7:18 PM, Prashant Punekar wrote: > > > Hi, > > > > Background: > > > > - Order is created but the payment authorization fails (may be > because of wrong credit card number entered). > > > > - The inventory gets release and the order is cancelled. > > > > Requeirment: > > > > - User should be able to re-submit the same order again after > correcting the credit card number. > > > > Doubts: > > > > - If we use the same order to be re-submitted again ofbiz will > throw and error saying the "Cannot create an order with same order id" > because we call createOrder(). > > > > Does ofbiz support Order resubmission(in the above context) OFTB ? > > > > Regards, > > Prashant > > > > ________________________________ > > http://www.mindtree.com/email/disclaimer.html > >
