The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi,
I am in the process of integrating the IDevAffiliate affiliate management system with my paid subscription ( getting some help from the owner of IDevAffiliate). In order for it to work, I need to retrieve the customer IP address once payment has been safely processed. Can someone please tell me how I can get the IP address? Thanks, John |
#2
|
|||
|
|||
![]()
You can use the constant IPADDRESS.
|
#3
|
|||
|
|||
![]()
Hi Marco,
The constant IPADDRESS is set when payment is completed? Thanks, John |
#4
|
||||
|
||||
![]()
IPADDRESS is set in init.php - which all vBulletin files run before anything else.
|
#5
|
|||
|
|||
![]()
Thanks Dismounted.
What happens in a scenario where a user pays for monthly subscription and it gets processed via IPN. One month later, PayPal triggers subscription payment again and it goes to vbulletin IPN. Does the IPADDRESS constant get initialized to the IP address that was initially used for this payment ( perhaps retrieved from database or passed from PayPal)? John |
#6
|
|||
|
|||
![]()
No, that would probably give the IP of PayPal. I don't think the IP that initiated the recurring payment is stored. Also the user could be on a different IP a month later. For what reason you need this original IP?
|
#7
|
|||
|
|||
![]()
Apparently idevaffiliate requires IP address for recurring payments - to assign the commission to the correct affiliate when the recurring payment occurs (kind of stupid). It is what their tech has told me.
I have sent them an inquiry... to check this. But, on another note... a month later the user won't be there right? The recurring payment will be done automatically and does not need the user's approval. John |
#8
|
|||
|
|||
![]()
That is the whole problem it seems. The user doesn't initiate the recurring payment, so there is no current IP for that user. I don't see how you can ever solve that.
|
#9
|
|||
|
|||
![]()
Hm, I was hoping the first time the payment happens, the IP address gets saved in the vbulletin db somewhere.
On recurring payment ( the automatic one ), I could perhaps pull the IP address from the db based on transactionId perhaps. |
#10
|
|||
|
|||
![]()
You could probably create a small plugin that will store the ip-address in the subscriptionlog table when the subscription is created. You could then use this stored IP on the recurring payment. It would not really be usefull though, as the user mightbe using a different ip by this time.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|