VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: razor7 on December 07, 2018, 19:05:11 PM

Title: plgVmOnPaymentNotification not hit
Post by: razor7 on December 07, 2018, 19:05:11 PM
Hi! I developed a payment plugin that worked just fine until I upgraded to j! 3.9.1 and VM 3.4.2.

The payment processor limits MY IPN url to not have variables in the URL, so, I need to put the IPN URL like this

Quotehttps://mysite.com/plugins/vmpayment/mypaymentplugin/ipn_notification.php

Inside ipn_notification.php I have

$_REQUEST['option'] = "com_virtuemart";
$_REQUEST['view']   = "pluginresponse";
$_REQUEST['task']   = "pluginnotification";

require_once("../../../index.php");


That worked just fine, but now, the function plgVmOnPaymentNotification in my plugin code doesn't get fire

If I write the IPN notificatin as URL it works (this is not allowed by my IPN processor):
Quotehttps://mysite.com/index.php?option=com_virtuemart&view=pluginresponse&task=pluginnotification