Skip to main content

Session token (Hosted Payment Fields)

POST 

/api/v1/session/token

Server-to-server request that creates a Hosted Payment Fields session. On success, a session token is returned. Pass the token to the HostedFields JavaScript library and in the Token header of the subsequent payment request.

Because this request is sent from your backend and not from the payer's browser, send the payer's real IP address in customer.ip. The platform stores it, forwards it to the connector as the payer IP, and returns it in the callback as customer_ip. If it is omitted, the IP of the system that called this endpoint is used.

Request

Responses

Hosted Payment Fields session created successfully