order re-submission !

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

order re-submission !

prashant punekar
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
Reply | Threaded
Open this post in threaded view
|

Re: order re-submission !

Sumit Pandit-3
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

Reply | Threaded
Open this post in threaded view
|

RE: order re-submission !

prashant punekar
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:[hidden email]]
Sent: Friday, December 04, 2009 8:30 AM
To: [hidden email]
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

Reply | Threaded
Open this post in threaded view
|

Re: order re-submission !

Abdullah Shaikh-3
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 <
[hidden email]> 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:[hidden email]]
> Sent: Friday, December 04, 2009 8:30 AM
> To: [hidden email]
> 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
>
>
Reply | Threaded
Open this post in threaded view
|

Re: order re-submission !

Sumit Pandit-3
In reply to this post by prashant punekar
Hi Prashant, Ideally you can not recreate canceled order. It is not valid change. You can recreate a new order with same number of item which was in canceled order. You can find its reference at order detail page.

--
Thanks And Regards
Sumit Pandit

On Dec 4, 2009, at 2:42 AM, Prashant Punekar 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:[hidden email]]
> Sent: Friday, December 04, 2009 8:30 AM
> To: [hidden email]
> 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
>

Reply | Threaded
Open this post in threaded view
|

RE: order re-submission !

prashant punekar
In reply to this post by Abdullah Shaikh-3
Thanks Abdulla and Sumit,

This should work for me.

Regards,
Prashant

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Abdullah Shaikh
Sent: Friday, December 04, 2009 3:23 PM
To: [hidden email]
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 <
[hidden email]> 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:[hidden email]]
> Sent: Friday, December 04, 2009 8:30 AM
> To: [hidden email]
> 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
>
>