REST API

Validating the JSON Web Token

When the system has returned the transient JWT, validate the token's authenticity. Retrieve the public key signature that is part of the transient JWT and compare that signature with the public key returned from
Cybersource
.
Follow these steps to validate the key:
  1. Retrieve the public key ID (
    kid
    ) from the transient JWT header.
  2. Retrieve the public key from
    Cybersource
    .
  3. Validate the public key signature.