VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: zczfwz on November 05, 2017, 08:46:36 AM

Title: plgVmOnPaymentResponseReceived doesn't get triggered after redirect back
Post by: zczfwz on November 05, 2017, 08:46:36 AM
Hi,

I'm trying to make a vm2 payment plugin work on vm3. Not sure why but the plgVmOnPaymentResponseReceived method doesn't get triggered in vm3, was there some changes made around that?
My plgVmConfirmedOrder method will redirect to the payment gateway and the gateway will have a successful and failed url to redirect back to may page.
I set both of them to my home page as I don't quite know where should I set. I expect to see the plgVmOnPaymentResponseReceived method gets triggered after the redirecting but it's not behaving like that.

Thanks for any advice.
Title: Re: plgVmOnPaymentResponseReceived doesn't get triggered after redirect back
Post by: AH on November 05, 2017, 10:20:42 AM
Here is a link that should help - there definitely are changes.

https://docs.virtuemart.net/tutorials/development/175-code-adjustments-for-virtuemart-3.html (https://docs.virtuemart.net/tutorials/development/175-code-adjustments-for-virtuemart-3.html)
Title: Re: plgVmOnPaymentResponseReceived doesn't get triggered after redirect back
Post by: zczfwz on November 06, 2017, 08:15:06 AM
Thanks for that. How did I miss out that page ;D
Title: Re: plgVmOnPaymentResponseReceived doesn't get triggered after redirect back
Post by: AH on November 06, 2017, 12:09:55 PM
You are welcome - we all miss things sometimes :-)