Skip to main content

IP Address Forwarding

Best practices on handling the original IP address for a transaction.

Some payment service providers will require the IP address of the buyer to be sent to them for anti fraud purposes.

Embed​

By default, when using Embed the IP address of the buyer will be passed to the payment service automatically by us where needed.

Server-to-server​

When you are creating transactions on behalf of a buyer via your own server without the use of Embed, you should pass the IP address of the buyer to us via the X-Forwarded-For header.

curl --header "X-Forwarded-For: 192.168.0.2" https://api.efundpay.com/...

Most of our SDKs support passing through this header on the POST transactions call.

We will automatically accept this header and pass it to the payment service where needed. If the header is not provided and the service provider recommends passing the IP address, we will forward the IP address of the request's origin instead.

Not all endpoints pass the IP address to a connector. It is recommended to send the IP address whenever it is available.

Powered by Docusaurus