multiple notify_url (multple ipn)

durangod
Contributor
Contributor

i found an great affiliate (free) program

its awesome and it works really great on capturing the clicks...

but does not capture the ipn because the notify url is set to my site, which i want,

i need a way to split the notify url into two lines of code, one for the site url and the other for the affiliate software url. 

 

i figure here are my choices:

first is to just just change the notify url code in the button to point to the affiliate program instead of my ipn verify on my site,  i dont want to do that because this is however a third party affiliate program and im not totally familiar with its workings yet, i know that my site works and so i dont want to change that process...

 

second.. on my site i capture the data from ipn in my data base so im half way to a solution, i could just take that data and build an array and update the affiliate database with that, however that means that ill have to rewrite the way the affiliate ipn file updates and the site and instead of using paypal notify url it will just read right off the db, that means alot of new code and changes that might not even work because i have no idea if the ipn php from my affiliate is set up to require validation thru paypal or it wont work, and i dont need all the var, i just need a few and what happens if i dont pull them all will the aff program bomb...

 

third, find a third party plugin that will allow each sale to update my site but also capture the information of the sale in such a way that the affiliate program thinks its connected to a notify url from paypal directly or something similar.

this really cant be that hard to do, i know it has been done i just cant find the right google term to search yet....

I have two softwares that work great, site and aff, i just need to bridge some information... some one has had to do this before someplace....

 

im thinking that once it is verified with paypal and i go to my thank you page there is not reason to reverify to update the aff program and that is where i want the update to take place, after the connection between my site and paypal is complete, then update the aff software..

 

i am either totaly overthinking this and its a one line code solution or its a major undertaking,  can some one just point me in a right direction please. or any advise

 

update: i found this http://mydigitaldispatch.com/ipn/   it looks perfect for what i want to do, but the site looks kinda hokey and it does not appear to have been updated in a while,  but thats what im looking for just from someone thats more current and available and has a professional updated site..

 

doesnt paypal have a bridge script we can use..

Login to Me Too
1 ACCEPTED SOLUTION

Accepted Solutions
Solved

durangod
Contributor
Contributor

i have this done with the curl script... solved...

View solution in original post

Login to Me Too
7 REPLIES 7
Solved

durangod
Contributor
Contributor

i have this done with the curl script... solved...

Login to Me Too

Bill2010
Contributor
Contributor

I Have been trying to get an affiliate program working for months without success.

What free affiliate program are you using and what is the curl program you mention?

 

 

Login to Me Too

durangod
Contributor
Contributor

hey bill, well i posted that prev message before i did the final testing because i was told it would fix the issue for sure, but it did not,

 

first here is the open source aff program  http://www.elitius.com/

 

it needs alittle visual tweeking, to some of the text and other issues, but its pretty sound until you actually want to capture the sale and thats the issue i was having, it captures hits just fine, but the integration they give you does not work.  to be honest by looking at their board and the software it does not appear that they even finished it completely, there are some things missing from the integration sale, but the software runs perfect other than that with as i said some minor tweeking...

 

if you google curl script ipn   you can find the curl code that i was told to use to pass the ipn data to the aff program because as you know the ipn data only happens once so you need to capture it and then send it over to the aff program to run its own cycle..

 

but that did not work... so what i am doing is i am stripping all the integration down and redoing the database update portion my self, its all mine after that..  its a faily big job but there are some parts you can duplicate, others you cannot..

 

one issue im having is that they use the var custom in their ipn code and you can only use that var one time in a paypal transmission and i already use that var in my site button code, so im trying to use a dif var that is not used,  you cant just make one up you have to use a var named by paypal, some are used some are not, and you can use one that is not being used as long as it fits the custom var format... 

 

anyway bottom line is if i can get this integration done, then it will work perfect....  so ill try to keep you posted, im not a php programmer so it might take me a bit, im doing it trial and error...

Login to Me Too

Bill2010
Contributor
Contributor

Thanks for the reply.

I will have a look this weekend.

 

It would be so easy if paypal just had the ability to send notifications to multiple urls.

Login to Me Too

durangod
Contributor
Contributor

so true bud, in a perfect world lol,     

 

here is what im fighting, the ipn file for that aff program has the commands to update the sale db, it also has the include to open the db and the other functions, it also has the ipn verify code and also the email function at the bottom.

 

what i did was i called that file from my base site, i saved the ipn data and transfered the string var to the aff named variables, i stripped out all the ipn verify code (no reason to verify if the site already did it)  i also took out the email routine at the end (just for testing, tring to figure out what worked and what didnt) 

 

so all thats left in the ipn php file is the var settings, the code to update the db and the include call....  its very simple process now (or should be) but i have tried it every way i know how and it bombs every time, the screen just freezes up.

 

i dont know what the issue is,  logically it should be so easy to just call that ipn php file from your site, pass the var, update the db, and get out of there, but i cant get it to work no matter what i try....

 

not sure if your a php programmer or not but if so maybe you can get it to work, or maybe you know someone that can take a look...

 

i never had such a booger of a programm that the solution seems so simple but cant get it to work... but as i said im not a php programmer i know enough to get me by and thats it..

 

in the admin area there is a manual add commission sale.... and it works,  but i even went to that php file, copied the routine to the ipn folder and tested it, still nothing... i have no clue...

 

maybe together we can get this to work... i know one thing, there is no support at all thru that site, it appears to be abandoned from what i can tell.... but i know one day i can get this to work...

Login to Me Too

exlax
Member
Member

Hello  there!

 

Were you able to resolve your issue?

 

I have also that application and I am trying to integrate it with Google CheckOut... Would you kind to share the script to achieve that?

 

Thanks and God bless!

 

 

Login to Me Too

durangod
Contributor
Contributor

i watnted to update everyone on this thread that the elitius software in this thread has a security publication notification out  that it is open to injection, that means that someone can use injection to hack your site, i found out because  my site and server were  hacked because of this software and its vulnerability issues.     I have since removed all of this software from my servers. 

 

I am working to resolve the issue and hopefully i can, if so i will let you all know.   I will need to charge for my time but i promise it will be very afforable for everyone... Im not out to take advantage of anyone..

 

 

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.