Library for encrypting mastercard api requests in postman
In postman :
- Copy the contents of the minified bundle as an environment variable
encryptionScript
. - Set the required environment variables for encryption
- Set this as a pre-request script:
eval(pm.environment.get("encryptionScript"));
// "jwe" for JWE encryption and "mce" for Mastercard encryption
encryptRequest("jwe", pm);
- Run the request.
Node 18+
npm 9+
npm test
npm run lint
npm run lint:fix
npm run minify
The output will be created in the dist/
directory.
Commit messages should follow Angular Commit Message Conventions.
If you're unfamiliar with this, instead of git commit
, run:
npm run commit
and you'll get an interactive shell which will help you with the commit message. For example:
git add file1 file2
npm run commit
For more details, see CONTRIBUTING
On PR merge, release is handled automatically by the semantic-release tool, which will :
- Update the version in
package.json
- Update the CHANGELOG using the commit messages
- Create a github release with the minified file.