Hi everyone,
I m trying to create a plugin in which the event will trigger when the payment is done! I have this code now on order_done.php which is working great for my website but i would like to convert it to a plugin.
Thing is, i tried those event triggers plgVmOnConfirmedOrderStorePaymentData() and plgVmConfirmedOrder() and for some reason they dont trigger :S
*The Class of the plugin extends vmPSPlugin
I dont want to create a payment plugin just a plugin that will trigger after payment action! I noticed when i create the plugin its automatically added as an option in Payment Options in Virtuemart Control panel. Perhaps i must use another class and another event trigger?
Thanks in advance!
just make it a system plugin..
class plgSystemPayment_done extends JPlugin {
and use a function
function plgVmConfirmedOrder(VirtueMartCart $cart, $order) {
//do your stuff
}
}