Use With Thriftshop Site as a Serverless Function
- netlify-cli
- postman
- Clone this Repo
git clone https://github.com/goldcoders/bux.ph-notify
cd bux.ph-notify
-
Edit ENV:
cp .env.example .env && nvim .env
-
Install Any NPM Dependencies type:
yarn
-
Run Local Server:
netlify dev
-
open postman and set url to
http://localhost:8888/api
method: POST -
Add Raw JSON
{
"req_id": "inv_001",
"status": "Paid"
}
- Click Send, Receive the Response
Response JSON
Failed:
{"message":"Payment link does not exist","status":"failed"}
-
Go to Settings
-
Click Change Site Name
bux.ph-notify.${yourdomain}.com
- make post request with Needed payload to
bux.ph-notify.${yourdomain}.com/api