Use this file to discover all available pages before exploring further.
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
{ "status": "failed", "statusCode": "400", "message": "Unable to find the encrypted data, please encrypt your payload and try again"}
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.
Retrieve your encryption key.
Decode your key using base64.
Split the result into an array with two elememts using ”!” as a delimiter.
Extract your RSA public key as array[1] from the array in step 3.
Encrypt using the RSA public key returned in step 4.