Welcome to the CommerceCore Payment Service API! This API provides payment endpoint for the CommerceCore API
To get started with the CommerceCore Payment API, follow the instructions below to set up the project locally.
-
Clone the repository:
git clone https://github.com/Backendly/commercecore-payment-service.git cd commercecore-payment-service
-
Set up a virtual environment:
python -m venv .venv source .venv/bin/activate # On Windows use `.venv\Scripts\activate`
-
Install the dependencies:
pip install -r requirements.txt
-
Configure the database:
Ensure you have a PostgreSQL or MySQL database set up. Update the database settings in the
db.session.py
file.DATABASE_URL = "postgresql://username:password@localhost/dbname"
you can ignore the connect_args.
-
Run the server:
uvicorn api.main:app --reload
Once the server is running, you can interact with the API using tools like Postman or curl.
You can test the API endpoints using Postman. Import the collection directly using the following link:
For detailed API documentation, visit the Postman endpoints.
This project is licensed under the MIT License. See the LICENSE file for details.