[ https://issues.apache.org/jira/browse/OFBIZ-2227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12679605#action_12679605 ]
Parul Bhagat commented on OFBIZ-2227: ------------------------------------- By tracing the code it can be seen that captureOrderPayments service is called synchronously in line 1010 of PaymentGatewayServices.java, capturePayment method is called in line 1200. * In capturePayment method, service is called synchronously for capturing payment (created dynamically) in line 1565 * If this above given service returns error then saveError method is called, where processPaymentServiceError service is called asynchronously.( line 1598) * If we call this service synchronously , so that the user can see the results immediately , and not ship the order if the payment capture fails. But I see a problem when this is done, this works first time if error is returned from testCapture service(I explicitly did that to return error) and we can see the error in payment capture in order detail page Payment Information section, but order gets completed when we do it for next time for the same order still the error is returned from the service and again is shown in order detail page. > If CC capture fails while packing order, Packer is notified and sets the > package aside for CSR to handle. > --------------------------------------------------------------------------------------------------------- > > Key: OFBIZ-2227 > URL: https://issues.apache.org/jira/browse/OFBIZ-2227 > Project: OFBiz > Issue Type: Sub-task > Components: product > Affects Versions: SVN trunk > Reporter: Pranay Pandey > Fix For: SVN trunk > > > When CC capture fail error is returned from capturing CC payment the Packer > should be notified with an error message so that he can put the package aside > for handling it by CSR. Shipment will remain in Packed status, though system > will record the failed capture as normal (visible in the Order Manager order > detail screen). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.