Skip to main content

IP Address Forwarding

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

Gr4vy Embed

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

Server-to-server

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

curl --header "X-Forwarded-For: 192.168.0.2" https://api.example.gr4vy.app/...

Gr4vy will automatically accept this header and pass it to the payment service where needed.

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