Skip to content

devinpearson/investec-blockly

Repository files navigation

investec-blockly

License: MIT A basic example of blockly with blocks created specifically for Investec programmable card.

Blocks available:

  • before transaction - creates the beforeTransaction function
  • after transaction - creates the afterTransaction function
  • after decline - creates the afterDecline function
  • authorization - the fields available from the authorization object
  • transaction - the fields available from the transaction object
  • log - creates a log statment
  • approve - creates a return transaction for the beforeTransaction function
  • countries - a list of countries
  • currency - a list of currencies
  • merchants - a list of merchants

Recommended IDE Setup

VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).

Customize configuration

See Vite Configuration Reference.

Project Setup

npm install

You will need to run investec-card-server in order to run the project.

Compile and Hot-Reload for Development

npm run start

Compile and Minify for Production

npm run build

Lint with ESLint

npm run lint