Skip to content

Backendly/commercecore-payment-service

Repository files navigation

CommerceCore Payment Service API

RevPloy Welcome to the CommerceCore Payment Service API! This API provides payment endpoint for the CommerceCore API

Table of Contents

  1. Getting Started
  2. Installation
  3. Usage
  4. Testing
  5. API Documentation
  6. License

Getting Started

To get started with the CommerceCore Payment API, follow the instructions below to set up the project locally.

Installation

  1. Clone the repository:

    git clone https://github.com/Backendly/commercecore-payment-service.git
    cd commercecore-payment-service
  2. Set up a virtual environment:

    python -m venv .venv
    source .venv/bin/activate  # On Windows use `.venv\Scripts\activate`
  3. Install the dependencies:

    pip install -r requirements.txt
  4. 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.

  5. Run the server:

    uvicorn api.main:app --reload

Usage

Once the server is running, you can interact with the API using tools like Postman or curl.

Testing

You can test the API endpoints using Postman. Import the collection directly using the following link:

Run In Postman

API Documentation

For detailed API documentation, visit the Postman endpoints.

License

This project is licensed under the MIT License. See the LICENSE file for details.