Create Hosted Fields session
Path Parameters
Headers
Request
Version of the Hosted Fields JavaScript library that you are using.
The current production version is 1.6.0.172441.
Version of the Hosted Fields JavaScript library that you are using.
The current production version is 1.6.0.172441.
Get a $50 voucher to share your developer experience with Payroc. Contact us to register your interest.
Use this method to create a Hosted Fields session token. You need to generate a new session token each time you load Hosted Fields on a webpage.
In your request, you need to indicate whether the merchant is using Hosted Fields to run a sale, save payment details, or update saved payment details.
In the response, our gateway returns the session token and the time that it expires. You need the session token when you configure the JavaScript for Hosted Fields.
For more information about adding Hosted Fields to a webpage, go to Hosted Fields.
Unique identifier that you generate for each request. You must use the UUID v4 format for the identifier. For more information about the idempotency key, go to Idempotency.
Indicates if a merchant wants to take a payment or tokenize a customer’s payment details:
payment - The merchant wants to run a sale or run a sale and tokenize in the same transaction.tokenization - The merchant wants to save the customer’s payment details to take a payment later or to update a customer’s payment details that they’ve already saved.Date and time that the token expires. We return this value in the ISO 8601 format.