This project was bootstrapped with Create React App. The project can be found hosted here.
git clone https://github.com/cirqlar/fliqpay-test.gitNote: Ensure you have changed into the cloned directory before you run this command
npm installCopy the contents of .env.example into a file named .env.local and complete it in with details.
Note: See the API section for details about the API
npm startYou can now view the app on http://localhost:3000.
Use the following command to execute tests. To run in watch mode, omit the -- --watchALl=false flag
npm test -- --watchAll=falseIn order to prevent leakage of sensitive keys, a simple proxy server (which can be found at https://github.com/cirqlar/fliqpay-api.git) was used to forward requests to the fixer api after appending the api key. Visit the repository to find instructions on configuring it.
- The project assumes a value of
0.369(when REACT_APP_TRANSACTION_FEE, is not set) for it's transaction fee percentage. - During the conversion calculation, the transaction fee is rounded down and the final converted amount is rounded up (to two decimal places).
- The send amount is limited to a hardcoded 1,000,000.00
- The send amount is limited to two decimal places