Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 03 Sep 2008, 10:23
vb_mp vb_mp is offline
 
Join Date: Feb 2008
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
Reply With Quote
  #2  
Old 03 Sep 2008, 15:25
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Just guessing but you can try the 'paidsub_complete' hook.
__________________
Marco van Herwaarden
Ex vBulletin.org Coordinator
Reply With Quote
  #3  
Old 03 Sep 2008, 15:46
vb_mp vb_mp is offline
 
Join Date: Feb 2008
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
Reply With Quote
  #4  
Old 04 Sep 2008, 09:38
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Real name: Hanson
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.
Reply With Quote
  #5  
Old 04 Sep 2008, 10:06
vb_mp vb_mp is offline
 
Join Date: Feb 2008
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
Reply With Quote
  #6  
Old 04 Sep 2008, 11:01
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
I guess you could, but i have no experience with such a setup.
__________________
Marco van Herwaarden
Ex vBulletin.org Coordinator
Reply With Quote
  #7  
Old 04 Sep 2008, 11:12
vb_mp vb_mp is offline
 
Join Date: Feb 2008
Originally Posted by vb_mp View Post
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.
Reply With Quote
  #8  
Old 14 Sep 2008, 01:16
vb_mp vb_mp is offline
 
Join Date: Feb 2008
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.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 16:07.

Layout Options | Width: Wide Color: