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 can 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.example.gr4vy.app/...

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

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