News:

Support the VirtueMart project and become a member

Main Menu

Incorrect plgVmOnPaymentNotification being called

Started by jgpage, January 20, 2012, 11:57:22 AM

Previous topic - Next topic

jgpage

I'm developing a PayFast module and have completed all the steps except the call back (ITN/IPN). The problem I have is the system calls the PayPal function and not the one I coded.

Documentation on new plugins is scarce, so the return url is: "JROUTE::_(JURI::root() . 'index.php?option=com_virtuemart&view=pluginresponse&task=pluginnotification&tmpl=component". Is there missing switch to identify which payment module should be called. From the PayPal plugin I can see that sometimes a "pm" variable is passed. Have tried including it, but still that same result.

Is there a reason for this or am I missing something?

jgpage

Further debugging the code, leads to a section of code in dispatcher.php, function trigger. This function calls every plugin that has the PaymentNotification function but the plugin (PayPal) doesn't check to see if it should be handling the IPN request or not. This is a bug.