Encryption of card data
Working with the JWE Encryption Standard
To ensure data confidentiality during transmission, the JWE (JSON Web Encryption) standard is used, which defines the format for encrypted JSON messages.
To encrypt the Card Number (PAN), the public payment key (payment_public_key) is used, which is provided during key generation (see "Key Generation" documentation).
The key conforms to the JWK (JSON Web Key) format:
JSON
"paymentPublicKey":
{
"kty": "EC",
"x": "Hp833OY6a0VbFD1j8xFyXWcAA-HOlyr7B_-B05esZUy32RA41s0oGAMTal23AX9d",
"y": "WGHeR9PhKRymoA-ggsR3VkQTgdfzt7PWa8P2qNpu0cV83lmLxE57b8rR7ajBurvj",
"crv": "P-384"
}The Public Payment Key (
payment_public_key) corresponds to the parameters:
Example Endpoint for Encryption:
Warning:
The request is for testing purposes only. It is forbidden to execute the request with real keys. Encryption must be implemented on your side.
Encrypts the transmitted message (e.g., card number, or card expiration date and CVV) using the public JWK key (EC).
Message to encrypt (e.g., card number, or card expiration date and CVV)
5232441010000177Key Type (EC)
ECPossible values: Curve Type
P-384X-coordinate of the public key (base64url)
kG1pVAvnrGKuTyiq0p9ixfmdMP6lZ6-429uUsEV5...Y-coordinate of the public key (base64url)
uq2IMAsebJeH5RUNLds5czh7cesCqbs3ZZad9lNX...Successful encryption. Returns the encrypted message (e.g., JWE token).
eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9...Bad Request (e.g., missing parameters)
Internal Server Error
Last updated