View Full Version : Can I achieve this with a vb hook?
vb_mp
09-03-2008, 08:23 AM
Hi,
Someone suggested that a hook could be used to call a custom script once a paypal subscription payment has been completed ( in IPN script ).
Does anyone know if this is possible?
Thanks
John
Marco van Herwaarden
09-03-2008, 01:25 PM
Just guessing but you can try the 'paidsub_complete' hook.
vb_mp
09-03-2008, 01:46 PM
Hi Marco,
Can I make a call to the idevaffiliate sale.php (via CURL) from a hook?
site.com/idevaffiliate/sale.php?idev_saleamt=$payment_amount&idev_ordernum=xyz&ip_address=IPADDRESS
John
Dismounted
09-04-2008, 07:38 AM
You can run (basically) any PHP code in a hook.
vb_mp
09-04-2008, 08:06 AM
Thanks Dismounted. I figured out how to use Curl to call the link I need.
Does anyone know whether the 'paidsub_complete' hook is only executed on correct payment or whether it also gets called on for example payment re-post (mistaken re-post).
Thanks
John
Marco van Herwaarden
09-04-2008, 09:01 AM
I guess you could, but i have no experience with such a setup.
vb_mp
09-04-2008, 09:12 AM
Thanks Dismounted. I figured out how to use Curl to call the link I need.
Does anyone know whether the 'paidsub_complete' hook is only executed on correct payment or whether it also gets called on for example payment re-post (mistaken re-post).
Thanks
John
I am concerned that it doesn't get called on both - if so, I would be giving double commission - which is bad.
vb_mp
09-13-2008, 11:16 PM
Just thought I'd drop in and leave a link to the plugin I created if anyone is interested:
https://vborg.vbsupport.ru/showthread.php?t=190848&highlight=idevaffiliate
Thanks for your help guys.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.