Let's start by creating a React app that'll act as our e-commerce portal and payment gateway:
- Create a new React app called gateway with the help of the following command:
npx create-react-app gateway
- Open package.json within the app, and add the following dependencies:
{
"name": "gateway",
"version": "1.0.0",
"private": false,
"dependencies": {
"bulma-start": "0.0.2",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-scripts": "3.0.1",
"typescript": "^3.4.0",
"web3": "^1.2.0"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react...