Hello Shrilesh, When I had last checked this workflow, it cancels the current OrderPaymentPreference and then creates new with updated order total. Also, it invokes the payment service to recapture the payment. The service which gets invoked to process payments is OrderServices.processOrderPayments. You can refer to this service to get more understanding of the overall payment workflow. Mostly the services which run in edit order workflow are updateOrderItems or appendOrderItem. You can refer to those services too. This workflow works well with the default payment processors in OFBiz.
One question really bothers me when I see this workflow is how we can reAuth the payment on customer's cards without CVV or customer's consent? I had faced the same problem in the reAuth process when I was working on integration with the First Data payment gateway. They are now allowing users to reAuth payment until and unless the user has CVV. Storing the cards sensitive information like CVV is against the PCI DSS compliance. So I would also be interested in more thoughts on this from the community about how they handle the payment related situations in order edit functionality. Kind Regards, -- Pritam Kute On Thu, Aug 27, 2020 at 4:57 PM Shrilesh Korgaonkar < [email protected]> wrote: > Hi Guys, > Thanks for getting back to me. I looked into it in more details and > struggling to understand what does back-office application does around > payment adjustments on back of order edit. E.g. if a back-office user is > reducing the quantity of some order line or increasing the order line then > does ofbiz trigger payment refund or parent request automatically? > If it does please give me some pointers around services involved with this > workflow around triggering payment adjustment > > > Regards, > Shrilesh K. > > > On Wed, Aug 19, 2020 at 7:16 PM Suraj Khurana <[email protected]> > wrote: > > > Hi Shrilesh, > > > > Adding to all provided infos, there are some services available OOTB, > which > > might be useful to your needs: > > loadCartFromOrder, loadCartForUpdateWithReqInvRes, loadCartForUpdate etc. > > > > HTH. > > -- > > Best Regards, > > Suraj Khurana > > Senior Technical Consultant > > > > > > On Wed, Aug 19, 2020 at 6:55 PM Shrilesh Korgaonkar < > > [email protected]> wrote: > > > > > Hi Guys, > > > > > > I'm not talking about OFBIZ as a whole framework or Order Plugin > > providing > > > edit order but only eCommerce plugin > > > E.G.-- > > > if a user creates an order using this eCommerce - ShoppingCart process > > > > > > submit -> select address -> select shipment method -> select payment > > method > > > -> final review page -> gateway with total value > > > > > > and after a few hours, he wants to edit order using same shoppingCart > > > process > > > > > > edit items AND / OR new items submit to order -> edit address -> edit > > > shipment method -> select payment method -> final review page -> > > > gateway with edited total value > > > > > > > > > > > > Regards, > > > Shrilesh K. > > > > > > On Wed, Aug 19, 2020 at 1:40 PM Jacques Le Roux < > > > [email protected]> wrote: > > > > > > > Hi Shrilesh, > > > > > > > > As said Pradeep, as long as you have not shipped, all that is > > available. > > > > You can also make a refund, etc. > > > > > > > > Jacques > > > > > > > > Le 19/08/2020 à 07:22, S K Pradeep Kumar a écrit : > > > > > Hi Sameer, > > > > > > > > > > Yes, OFBiz provides > > > > > Order Edit : - Add or Remove the items from the order. Also, > update > > > > > adjustments. > > > > > Cancel Order : Is already there. > > > > > > > > > > With regards, > > > > > S K Pradeep Kumar, > > > > > 9035009495 > > > > > > > > > > > > > > > On Tue, Aug 18, 2020 at 3:54 PM Shrilesh Korgaonkar < > > > > > [email protected]> wrote: > > > > > > > > > >> Dear friends, > > > > >> > > > > >> I wish to know if Ofbiz eCommerce shop offers the order edit and > > order > > > > >> cancel functionality after the order is successfully paid and > > > submitted > > > > by > > > > >> the customer. > > > > >> > > > > >> Example: customer successfully places the order and subsequently > > > wishes > > > > to > > > > >> edit the ordered items / cancel the order. > > > > >> > > > > >> Regards, > > > > >> Shrilesh K. > > > > >> > > > > > > > > > >
