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
- Install Ruby version 3.2.2
bundle install
rails db:create
rails db:migrate
rails s
- Open http://localhost:3000/
rspec
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.