Hello yall,

I'm starting to work with Paypal (just signed up for x.com and sandbox). I was looking at the DoDirectPayment API for credit card transactions. One of the required fields kinda took me by surprise. Here it is.

IPADDRESS 
 (Required) IP address of the buyer's browser.

Note: 
PayPal records this IP addresses as a means to detect possible fraud.

Character length and limitations: 15 single-byte characters, including periods, for example, 255.255.255.255

How do i obtain the IPaddress of a buyer with PHP?? I'm assuming it can't be as easy as 192.168.0.1 right?? lol

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.