Skip to content

Anastasiya09/billing

Repository files navigation

README

The system for automatic subscription rebilling. If a payment attempt returns an "insufficient funds" response from the bank, the system should reduce the payment amount and retry (up to 4 times). If the payment is successful but for less than the full amount, the remaining balance should be automatically charged a week later

Installation

  1. Install Ruby version 3.2.2
  2. bundle install
  3. rails db:create
  4. rails db:migrate
  5. rails s
  6. Open http://localhost:3000/

Run tests

rspec

API Documentation

Use swagger to see the API documentation. Open http://localhost:3000/api-docs/index.html.

Try it out button can be used to test the API.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published