JWT Encryption Guide

Juspay uses JWS to sign request payloads, and JWE to encrypt the signed request. These are created by using 2 sets of Private Key & Public Keys issued for merchants and Juspay. Merchants will use their private key to sign the API request payload and then encrypt the signed API request with Juspay’s public key. Juspay will use its private key to decrypt the message and Merchant’s public key to verify the signature.

Keys Generation

JWT Encryption

Steps to construct a JWT Payload

JWT Decryption

Steps to Decrypt a JWT Payload

Encryption Logic

Decryption Logic


Encrypted API Samples

1. Session API

2. Order Status API

3. Refund Order API

4. Mandate Execution API

Last updated 1 year ago