News:

Looking for documentation? Take a look on our wiki

Main Menu

javascript insertion after payment paypal

Started by michelerighetti, January 17, 2023, 10:27:19 AM

Previous topic - Next topic

michelerighetti

Good morning everyone, I need to insert a short javascript after the payment with paypal has been made successfully.
this is for inserting a pinterest tag after successful payment.
I think you could act on the file vmpayment/paypal/paypal/tmp/apiresponse.php
Joomla 3.10.11, virtuemart 4.0.6 10690


ssc3

You could try an alternative PayPal plugin at

https://plugins.online-store.co.uk/paypal_express_checkout.html

This has an option to add JavaScript directly into the payment confirmation page.
In the plugin setup there is an option called

"Tracking Code"

Insert any JavaScript in there. Then save.

The plugin works best with shortcuts turned off.
To the customer this makes it look just like PayPal Standard.
Virtuemart Payment Plugins
https://plugins.online-store.co.uk

michelerighetti

Thank you for your response. I have inserted this nice plugin and it seems to work very well. I thank you.
I need to insert the same javascript for standard payment, is there a similar solution?

ssc3

Quote from: michelerighetti on January 18, 2023, 17:25:13 PM
I need to insert the same javascript for standard payment, is there a similar solution?

It only works for plugins from our site, you need another solution for standard payments.
Virtuemart Payment Plugins
https://plugins.online-store.co.uk