Received a notice in the dblog type: commerce_payflow
Payflow server response:
Array
(
[RESULT] => 7
[SECURETOKENID] => 5294752ce487a898240547
[RESPMSG] => Field format error: Request is too large to process
)
I am running the latest Commerce Kickstart install on a fresh site. This message was apparently triggered when a customer tried to checkout with 10 line-items in the cart. Ran some tests, and found out that quantity does not matter, it's the number of line-items present in the cart: 9 items works, 10 does not. Customer is prevented from going to the Payment page, and is given an error on the review page: "there are errors on the page: communication with paypal failed...".
I could not find any documentation on this, save for an obscure thread in moocommerce. I believe the limit Paypal sets is 99 items per checkout, but I have not found any solid evidence of that either.
Any ideas/help would be much appreciated, thanks.
Comment | File | Size | Author |
---|---|---|---|
#8 | commerce_paypal-omit-itemized-option-2144311-8.patch | 1.67 KB | andyg5000 |
#6 | commerce_paypal-omit-itemized-option-2144311-6.patch | 1.89 KB | capellic |
Comments
Comment #1
zooter626 CreditAttribution: zooter626 commentedComment #2
gpbarga CreditAttribution: gpbarga commentedHi,
I am also receiving this exact problem, do you know or have seen anything that you've tried to get this work?
thanks,
-gb
Comment #3
Solthun CreditAttribution: Solthun commentedI am having the same issue on a site that has been up and running for a while.
I found only a few other mentions online for this problem and all of the recent.
Even though this issue is old, the latest comment is also recent,
so the most probable answer seems to be that paypal altered
something in their API in the last month and only large orders
with multiple line items get this issue so it may not be very common.
Sorry to not provide an answer, but we'll continue looking into this,
maybe contact paypal if needed.
Comment #4
capellicI too am having this problem. I have a stuck order with 27 line items.
Comment #5
capellicDid some additional research and discovered that the number of line items isn't what triggers the error, it's the total size of the payload being sent to PayPal. I got to thinking this when @zooter626 reported that 10 items triggered the error but I could get to 15 before I triggered the error. I found this Stack Overflow (http://stackoverflow.com/questions/39480168/field-format-error-request-i...) issue that suggested that the CURLOPT_POSTFIELDS is too long for what PayPal will accept.
I can't find anything in PayPal's documentation that indicates any sort of payload limitation.
Comment #6
capellicThe attached patch adds a checkbox to the Payment Method page that allows us to omit the itemized list (line items).
Comment #7
tophneal CreditAttribution: tophneal commentedA site I work on was having this same issue, and after applying the patch above, a LOT of the errors stopped. However some still do come through. Upon inspecting the logs, it appears that the excess information is still being sent to PayPal.
Here's two associated logs, with any personal info removed:
Comment #8
andyg5000@tophneal I don't think the patch applied for you. Can you try this re-roll?
It looks like the L_NAME[] query string generated for the CURL request becomes too long for PayPal to accept in these situations.
Comment #9
tophneal CreditAttribution: tophneal commented@andyg5000
Thank you for the patch! I just rolled it, but of course I'll have to wait for a large order to be processed. I'll report back if there are still issues.
Comment #10
andyg5000Great, just be sure to update the payment settings to omit them too, if you haven't already :)
Comment #11
mglaman