Using just the base package
| Project: | lm_paypal |
| Version: | 6.x-2.x-dev |
| Component: | LM Paypal Base |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Hi there,
I can see from the issue list that the developers of this module are snowed under, but maybe someone else can help me from their experience with this module?
Just something to mention to others who might be interested in this module and stumble upon this post. I installed the recommended D6 version and configured the module, then I went to Paypal and send a test 'web_accept' and I got an SQL error in drupal watchdog (log). Eventually I bit the bullet and decided to go for the D6 development branch version of the code and my web_accept messages now get processed.
Anyway, for my question. All I'd like to use this module for is to handle the basic Paypal message negotiation process. I was looking around to see if there was a hook that was called when a IPN message was received. Another post described how that worked, so I created my own module and implemented the hook. My module is called mfcny_paypay ... so this is my hook definition.
function mfcny_paypay_lm_paypal_process_in ($ipn, $function_name, $result)
Thing is, it doesn't appear to ever get called (I even tried with a 'real' transaction just in case it was something to do with the Paypal Sandbox interaction).
In my drupal log the final message I get from LM is "No web_accept processor registered for this item_number: 0". I am wondering if this is because I only am using the base module and trying to implement my own hook, and perhaps I am doing it incorrectly.
Anyway, I am going to start to looking at the code, but I imagine I am not the only person who is hitting this problem. If anyone has any insight I'd appreciate it. Otherwise I will post an update when I know more.
Cheers,
Andy

#1
I have an update. Looks like either I misread the earlier post or that the hook function changed. I took a look at the code and adjust my function definition to this:
function mfcny_paypay_lm_paypal_ipn ($ipn)
My function is now firing. I hope this helps someone else, somewhat ...
Cheers,
Andy