Checkout/tokenizeCnpCard
Tokenize card data from the secure iframe
Exchange raw card data for a single-use token, from inside the hosted iframe.
POST
/api/v1/cnp/public/tokenization-sessions/tokenizeBrowser-safeCall from the customer’s browser with a publishable key — never your secret key.
The final step of tokenization: the hosted card iframe posts the PAN here and receives a token that stands in for it everywhere else in the flow. This call originates from kepa's iframe, not your JavaScript — raw card numbers must never pass through merchant code, which is what keeps you out of PCI scope.
Request body
application/json
clientSecretstringRequiredExample "vts_01JQXYZ_secret_example"
panstringRequiredRaw PAN. Must be submitted only from Kepa's secure card iframe.
expirystringRequiredExample "12/30"
cvcstringRequiredExample "123"
cardSchemestringExample "VISA"
Response
application/json
tokenstringExample "tok_12345678901234567890123456789012"
cardSchemestringExample "VISA"
Good to know
- Consumes a tokenization session created for the checkout; the token is single-use and short-lived.
- If you are building a fully custom form instead of using Elements, this runs in the kepa card iframe you embed — never in your own script.
tokenizeCnpCard