This repository contains the backend code for the Enigma project.
- Clone the repository:
git clone https://github.com/FiveD-SE/Enigma-Backend.git
- Install dependencies:
npm install
- Set up environment variables:
- Create a
.env
file in the root directory. - Add the following environment variables:
PAYOS_CLIENT_ID=your_payos_client_id
PAYOS_API_KEY=your_payos_api_key
PAYOS_CHECKSUM_KEY=your_payos_checksum_key
npm start
/order/create
: Creates a new order./order/:orderId
: Retrieves an order by ID./order/:orderId
: Updates an order by ID./order/confirm-webhook
: Confirms a webhook URL.
/payment/payos
: Handles PayOS payment webhooks.
The backend API can be used to create, retrieve, and update orders. It also handles PayOS payment webhooks.
Contributions are welcome! Please open an issue or submit a pull request.
This project is licensed under the MIT License.