[ https://issues.apache.org/jira/browse/OFBIZ-3895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12901774#action_12901774 ]
BJ Freeman commented on OFBIZ-3895: ----------------------------------- do a search in the file you are patching. you will see many references to payPalCheckoutToken specificially if (UtilValidate.isNotEmpty(errorMessages)) { if (errorMessages.containsKey("10411")) { // Token has expired, get a new one cart.setAttribute("payPalCheckoutToken", null); return PayPalServices.setExpressCheckout(dctx, context); } return ServiceUtil.returnError(UtilMisc.toList(errorMessages.values())); } this is how your 10001 error should be handled.by that I mean evaluate the error code and make a determination as to what to do. hope that helps. > Cannot be redirected to PayPal > ------------------------------ > > Key: OFBIZ-3895 > URL: https://issues.apache.org/jira/browse/OFBIZ-3895 > Project: OFBiz > Issue Type: Bug > Components: accounting > Affects Versions: Release Branch 10.04, SVN trunk > Reporter: Liang Zhang > Attachments: PayPalRedirecting.patch > > > It gets an 'internal error 10001' from Paypal in service > 'payPalSetExpressCheckout' if you have already run this service be been > redirected. > Comment these three lines out will move away this error. > if (UtilValidate.isNotEmpty(token)) { > encoder.add("TOKEN", token); > } > There is also another issue. The customer can update his/her shopping cart > then submits order successfully after he/she confirmed the payment and was > redirected back to ecommerce site. That means the customer can place an order > of the value which is higher than the total amount he/she confirmed in > Paypal. A check shall be added to avoid this issue because that would loose > money. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.