Lookup using Public Key
// Object to encrypt
const toEncrypt = {
merchantId: <merchant_id>,
transactionId: <transaction_id>
};
// Generate an encrypted request payload
export const data = async (toEncrypt, publicKey) => {
const buffer = Buffer.from(toEncrypt);
const encrypted = crypto.publicEncrypt(publicKey, buffer);
return encrypted.toString('base64');
};
// merchantId – Unique identifier of the Merchant in the Rocketfuel, will get it from the portal.
// transactionId – Unique identifier of the Transaction initiated by Shopper using RocketFuel, will get it from the Webhook/callback. Headers
Name
Type
Description
Request Body
Name
Type
Description
The webhook payload contains the following fields:
Last updated
Was this helpful?