Closed (fixed)
Project:
Ubercart
Version:
6.x-2.x-dev
Component:
Payment
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Mar 2012 at 04:47 UTC
Updated:
15 May 2012 at 00:20 UTC
in function _uc_paypal_pending_message, in uc_paypal.module, there is a line of code
case 'multi-currency':
the code being returned by paypal actually has an underscore, not a dash, so this should be:
case 'multi_currency':
Comments
Comment #1
tr commentedCan you provide a link to the PayPal API documentation so I can verify this?
Comment #2
earthangelconsulting commentedhmmm... paypal docs are a bloody mess, but i'll see what i can find :-) i verified it by putting in a watchdog statement to capture the value of the pending_reason POST variable from paypal. but it would be good to see it right in their docs, i agree.
Comment #3
tr commentedYeah, that's why I asked. I didn't program that code and I don't use it, but I'm willing to fix it if I can get a definitive reference for the current API.
Comment #4
longwaveBoth these pages say the original "multi-currency" is correct, but perhaps the docs are wrong? We could just handle both cases in Ubercart though.
https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=develo...
https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=develo...
Comment #5
tr commented@goatvirus: Can you send me a copy of the IPN you received, via my contact tab? And include your PayPay account e-mail address? I contacted PayPal Merchant Technical Support this morning, and it seems to be a long-standing (>6 years) but unreported flaw in the documentation, and possibly also in PayPal's code, but PayPal would like to trace a few transactions to make certain. I've looked at some other open source PayPal code and it looks like what that other code does is check for 'multi-currency' OR 'multi_currency' OR 'multicurrency'. So others have experienced the same problem - it's a shame no one took the time to report this to PayPal ...
Comment #6
tr commented@goatvirus? I need that information from you to clear this up.
Comment #7
longwaveBetter title.
Comment #8
earthangelconsulting commentedhi sorry about that, i was offline for a while there
well, how exactly do you want to see that IPN? in what format? aren't they a form submission, that gets handled by the ipn code in the paypal module? it's not like it's an email or something else that i can forward to you easily.
i'd be happy to help but just give me an idea of how best to harvest this info and send it to you.
Comment #9
longwaveConfirmed that PayPal sandbox sends multi_currency instead of multi-currency. Fixed in both branches, and also improved the "unknown" messages so the reason is recorded.
Comment #10
earthangelconsulting commentedthanks longwave, sorry i kinda dropped the ball on following this up. life got in the way :-) i'm glad you found the confirmation you needed.
cheers
Peter "Fish" Fisera
http://earthangelconsulting.com