Encryption Guide
When making a POST request, you are to do a SHA256 encryption of the reference in your request payload by visiting https://10015.io/tools/sha256-encrypt-decrypt before making the request. You'll need your public key (found in the Settings >> API keys section of your dashboard) to manually encrypt the reference.
import Reference from "reference";
const reference = {
"Reference": "012344345"
};
const publicKey="";//get from settings page on the portal
const signature = reference
.createHmac("SHA256", encryptionKey)
.update(JSON.stringify(reference))
.digest("hex");
//add generated signature to your headers as `signature` when initiating a payout
Note :
signature holds the value of the encrypted parameter that should be added to your headers
Updated 8 months ago