- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I just finished implimenting the PHP API code, using the sample code from GitHub. I upgraded from our old CGI/PERL code which has been depricated.
Everything is working fine, except one thing: When we charge a credit card the new code transmits our website's IP address instead of the customer's IP address. This causes our IP velocity filter to flag every transation, since it thinks it's the same person.
Does anyone have an idea how I can fix this? Maybe there's something I didn't set right. THANKS!
Solved! Go to Solution.
09-29-2019 07:11 PM
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
THANK YOU very much for this advice. I searched around and did find the SetCustomerIP() function in one of the classes in the API. It works beautifully! I'm a bit surprised that they don't have that in the sample code if it needs to be set. But I'm fine now!
09-30-2019 10:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do you pass the IP address in your API call? Need more background into what you are doing.
09-29-2019 08:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, there's no place I've found to pass the IP address. (There wasn't in the old code, either.) It seems to just pick it up somewhere. I would prefer to grab it myself and pass it.
09-29-2019 08:45 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is a property called customerIP that you can pass it under. It is in the API reference. Your old code may have been for SIM. That would explain how the correct IP address makes it to you. You are probably getting the default 255.... IP address now.
09-29-2019 10:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
THANK YOU very much for this advice. I searched around and did find the SetCustomerIP() function in one of the classes in the API. It works beautifully! I'm a bit surprised that they don't have that in the sample code if it needs to be set. But I'm fine now!
09-30-2019 10:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2019 10:36 AM

