Some payment service providers 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 is
passed to the payment service automatically where needed.
Server-to-server
When creating transactions on behalf of a buyer via a server
without the use of Embed, pass the IP address of the buyer via
the X-Forwarded-For header.
curl --header "X-Forwarded-For: 192.168.0.2" https://api.example.gr4vy.app/...
Most of
the SDKs support passing through this header on the
POST transactions call.
This header is automatically accepted and passed to the payment service
where needed. If the header is not provided and the service provider recommends passing the IP
address, the IP address of the request’s origin is forwarded instead.
Not all endpoints pass the IP address to a connector. It is recommended
to send the IP address whenever it is available.