This script enables you to simulate overdue payment scenarios, providing an efficient way to test:
- Your
overdue-payment-flow
in your KillBill server. - Your custom
killbill-payment-plugin
, starting with the payment-test plugin.
This script mirrors the example provided in the Killbill documentation
- Display current UTC time
- Exit program
- Upload catalogs
- Create accounts
- Add payment methods
- Create subscriptions
- Change clock
- Configure Payment Test Plugin
-
Ensure you have python 3.x nstalled on your machine, along with virtualenv (included in Python 3.3 and later).
-
Understand What is Killbill and have it installed on a server by following these instructions.
-
Install the payment-test plugin or a custom plugin following these instructions.
For the payment-test plugin, you may need to:
- Execute the following DDL script to manually create tables in the database.
- Manually install the plugin and restart the server by following the instructions found here.
git clone https://github.com/albertolicea00/killbill-testing-system-CLI.git
cd killbill-testing-system-CLI
python -m venv venv
-
Mac / Linux :
source venv/bin/activate
-
WSL :
source venv/Scripts/activate
-
Windows :
venv\Scripts\activate
pip install -r requirements.txt
python main.py