An emulator for the Programmable Card Code Lamda function
npm install programmable-card-code-emulator


The emulator is available as an npm package. To install it, run the following command:
```
npm i programmable-card-code-emulator
Import the emulator into your code:
`typescript`
import { createTransaction, run } from "programmable-card-code-emulator";
Create a new transaction object:
`typescript`
const transaction = createTransaction(
"ZAR", // Currency Code
1000, // Amount in cents
"0000", // Merchant code (MCC)
"Test Merchant", // Merchant Name
"Test City", // City
"ZAF" // Country code
);
Run an emulation:
`typescript``
const environmentalVariables = JSON.stringify({ value: 'string' })
// return a array of executions, as seen on the live logs
const result = run(transaction, code, environmentalVariables);
* Additional tests for checking that lodash, fetch and moment are available.
* Additional exception handling for malformed code, invalid env etc.
This project is licensed under the MIT License - see the LICENSE.md file for details