Skip to content

albertolicea00/killbill-testing-system-CLI

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Killbill : Testing the System - CLI 🪲🤑

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

overdue test flow

🔧Features

  • Display current UTC time
  • Exit program
  • Upload catalogs
  • Create accounts
  • Add payment methods
  • Create subscriptions
  • Change clock
  • Configure Payment Test Plugin

🚀Getting Started

Prerequisites

  1. Ensure you have python 3.x nstalled on your machine, along with virtualenv (included in Python 3.3 and later).

  2. Understand What is Killbill and have it installed on a server by following these instructions.

  3. 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.

Clone and go to the project directory

git clone https://github.com/albertolicea00/killbill-testing-system-CLI.git
cd killbill-testing-system-CLI

Create a .env file from the .env.example and change the default values

Create and activate virtual environment (optional)

python -m venv venv
  • Mac / Linux : source venv/bin/activate

  • WSL : source venv/Scripts/activate

  • Windows : venv\Scripts\activate

Install dependencies

pip install -r requirements.txt

Execute the script

python main.py

Follow the tutorial and enjoy : )