Integration and Testing

Authorize.Net API questions and help with your payment integration.

Reply
All Star
Posts: 733
Registered: ‎11-05-2018

Re: Customer IP

@malphas0013

What language is your app written in? You can get the IP from your server. You can pass to auth.net and retrieve it later. You can also just capture it and store it in a db. What is your use case for this? If for security, I would capture it and log it at the time the pay button was clicked.

I am almost certain, back to your original question, that every server side programming language has a method to capture the IP address. In php it is $_SERVER[‘REMOTE_ADDR’]. That global variable is the users IP address.
Member
Posts: 1
Registered: ‎09-17-2020

Re: Customer IP

Is there a PHP method using the API? Non referenced in the documentation. 

 

JSON is "customerIP": "192.168.1.1",

Could PHP be  $customerData->setCustomerIP("192.1.1.1"); ?