https://github.com/tommygrammar/instasend-payment-gateway-api-setup
This is my setup with instasend payment gateway for my react app
https://github.com/tommygrammar/instasend-payment-gateway-api-setup
Last synced: 2 months ago
JSON representation
This is my setup with instasend payment gateway for my react app
- Host: GitHub
- URL: https://github.com/tommygrammar/instasend-payment-gateway-api-setup
- Owner: tommygrammar
- Created: 2024-07-12T02:15:25.000Z (11 months ago)
- Default Branch: ohalicapitals.me
- Last Pushed: 2024-07-12T02:17:44.000Z (11 months ago)
- Last Synced: 2025-01-24T07:11:30.869Z (4 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# instasend-payment-gateway-api-setup
This is my setup with instasend payment gateway api for my react appFrontend - profile.js (make sure to import it into your React app.)
Backend - server.js
install the following before you run it:
npm install instasend-node
npm install express
nom install body-parser
npm install axios
npm install intasend-inlinejs-sdk
npm install https-browserify
npm install @craco/craco
npm install stream-http
npm install url bufferCreate a craco.config.js file at the root directory of your react app
in your package.json file: replace scripts with this instead:
"scripts": {
"start": "craco start",
"build": "craco build",
"test": "craco test",
"eject": "react-scripts eject"
}make sure to run your backend: node server.js
run your frontend with npm start:
then click the button, it should bring a transaction thing.
Try it out
Keep your secret keys in your .env file. Do not expose it to the public