React
Requirements
-
Node 8, 10 or higher.
-
Node package manager (npm).
Installation
Install this package with npm
Environment Variables
To run this project, you will need to add the following environment variables to your .env file.
Open the project and create .env file in the root directory.
Create-react-app does not allow you to define Environment Variables that do not start with the REACT_APP_ prefix.
REACT_APP_CHARGILY_APP_KEY
If you are wondering about the app_secret, it will be used in the backend to validate the incoming webhooks.
Get started
Check this video to more understand about webhooks.
Use beeceptor to actually observe some details(body, headers) about the post request (webhook).
You need to validate the incoming webhooks in the backend, here is where you will need the app_secret that you got from ePay by Chargily previously.
check the documentaion of laravel or express packages in github(depends on what you’re using in the backend) too see how validate incoming webhooks.