Skip to main content
When initiating or managing your payments and orders, you must encrypt your data before making the request. If you send an unencrypted request to an endpoint that requires encryption, you will receive a 401 error.
400 Bad Request
To encrypt your request payload, you will need to fetch your encryption key from your dashboard (learn more here). Our encryption uses the RSA algorithm to encrypt data, you can read up about RSA encryption here. We’ve included some examples in this guide to help you encrypt your requests.
  1. Retrieve your encryption key.
  2. Decode your key using base64.
  3. Split the result into an array with two elememts using ”!” as a delimiter.
  4. Extract your RSA public key as array[1] from the array in step 3.
  5. Encrypt using the RSA public key returned in step 4.