![]() |
|
Thread Tools |
#1
|
|||
|
|||
Can I achieve this with a vb hook?
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 No members have liked this post.
|
#2
|
|||
|
|||
Just guessing but you can try the 'paidsub_complete' hook.
__________________
Marco van Herwaarden Ex vBulletin.org Coordinator No members have liked this post.
|
#3
|
|||
|
|||
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 No members have liked this post.
|
#4
|
||||
|
||||
You can run (basically) any PHP code in a hook.
__________________
Former vBulletin.org Staff Member View My Modifications 29 Releases and Counting... Latest Modification: dmActivityStream - vBookie Integration (4.x) Please do not PM me to ask for support - please use the relevant thread or forum. No members have liked this post.
|
#5
|
|||
|
|||
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 No members have liked this post.
|
#6
|
|||
|
|||
I guess you could, but i have no experience with such a setup.
__________________
Marco van Herwaarden Ex vBulletin.org Coordinator No members have liked this post.
|
#7
|
|||
|
|||
I am concerned that it doesn't get called on both - if so, I would be giving double commission - which is bad.
No members have liked this post.
|
#8
|
|||
|
|||
Just thought I'd drop in and leave a link to the plugin I created if anyone is interested:
http://www.vbulletin.org/forum/showt...=idevaffiliate Thanks for your help guys. No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 00:37.