Jump to content

nemike

Members
  • Content count

    8
  • Joined

  • Last visited

  • Days Won

    1

nemike last won the day on October 15 2021

nemike had the most liked content!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. nemike

    Help capturing data sent to Paypal

    Actually I found the code and fixed it and now all transactions that were failing are now working, for anyone else on old code like me here is the fix: edit includes/modules/payment/paypal.php inside the function "formFields" add a line after: $item_number = ''; for ($i=0; $i<sizeof($order->products); $i++) $item_number .= ' '.$order->products[$i]['name'].' ,'; $item_number = substr_replace($item_number,'',-2); This is the new line to add after: if( strlen($item_number) > 127 ) { $item_number = substr($item_number, 0, 124) . "..."; } That fixes the problem. Hope this helps someone. Mike
  2. nemike

    Help capturing data sent to Paypal

    Jack_mcs any idea where that fix might have been put? Is there a git repository with the code and a possible fix that I can look at? I can not upgrade as a completely new commerce site would have to be done. I am trying to find the code to fix this myself, if nothing else I was going to truncate the field and end it with ... Thanks, Mike
  3. nemike

    Help capturing data sent to Paypal

    Well I found the problem, but not sure how to fix it yet, will probably search around in the paypal code... The problem is the (for a lack of what to call it) purchase description can only by a max of 127 characters, but the we are sending the entire purchase list in that field and if the customer orders enough items it overflows that field and then paypal complains.
  4. Sorry if this is the wrong place to ask, please redirect me if there is a better place to ask for help. Occasionally we run into a customer who says they are seeing the "Things don't appear to be working at the moment. Please try again later" message from paypal once the transaction is handed off from our server to paypal. And the url has a code=BAD_INPUT_ERROR in it. I was able to get some information from the customer and have found that some combination of the items they are trying to purchase is causing this problem, but I can't seem to narrow it to only one item. I removed items until it started accepting the transaction but then just putting that same item in the cart alone did not trigger the problem. So I'm asking how I can capture (ie debug) what data is sent to paypal so I can determine if we have something weird going on in the data. Thanks, Mike
×