Skip to content

goldcoders/bux.ph-notification-url

Repository files navigation

Bux.ph Notification Postback API

Use With Thriftshop Site as a Serverless Function

Requirements

  • netlify-cli
  • postman

Development

  • 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"}

1 Click Install For Production

Deploy to Netlify

Deploy on One Specific Site URL in Production

  • Go to Settings

  • Click Change Site Name bux.ph-notify.${yourdomain}.com

Production

  • make post request with Needed payload to bux.ph-notify.${yourdomain}.com/api

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published