Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
5cc325e
* Added playbook tasks to install Stripe, Hyperswitch, email-notifica…
vnandwana Apr 16, 2026
e2bf29e
* Moved all plugins .sql files under roles/killbill directory
vnandwana Apr 16, 2026
026f01b
Fixed path location of setup_plugin_ddl.sh.j2 file.
vnandwana Apr 26, 2026
cdb1321
Fixed hyperswitch ddl path
vnandwana Apr 26, 2026
8803083
Fixed Ansible parsing error
vnandwana Apr 26, 2026
bbf5bbc
Corrected Aviate URL and removed variables that were not required.
vnandwana Apr 27, 2026
9e9d736
Corrected Aviate prod URL
vnandwana Apr 27, 2026
5167bc0
Updated kpm_plugin.yml, removed become_user=tomcat to prevent sudo ti…
vnandwana Apr 27, 2026
46c4d35
Updated aviate.yml and hyperswitch.yml, removed become_user=tomcat to…
vnandwana Apr 27, 2026
bc7d7ad
Braintree now installs DDL itself -- updated install_plugins.yml play…
vnandwana Apr 28, 2026
2e2e291
Added install_plugins.yml for Docker image -- updated Dockerfile to r…
vnandwana May 6, 2026
f13b842
Updated Docker image build command to not use cache
vnandwana May 8, 2026
8895517
Fixed Ansible var path of kpm_plugins.yml.
vnandwana May 8, 2026
46c3f1d
Fixed 'role_path' is undefined issue
vnandwana May 8, 2026
f0d0ee1
Added setup_plugin_ddl.sh.j2 file.
vnandwana May 13, 2026
12560e4
Added Aviate token and URL variables.
vnandwana May 13, 2026
b63bb8d
Updated killbill.sh script to wait for DB to be ready before installi…
vnandwana May 13, 2026
b6cfc39
Updated killbill.sh script
vnandwana May 13, 2026
83412bf
Updated Dockerfile.template, added db_config_address
vnandwana May 13, 2026
d17b143
Updated Dockerfile.template, passed database variables to INSTALL_PLU…
vnandwana May 13, 2026
fa81997
Updated Dockerfile.template, passed database variables to INSTALL_PLU…
vnandwana May 13, 2026
b271eca
Moved DB variables declaration from INSTALL_PLUGINS_CMD to killbill.sh.
vnandwana May 14, 2026
aa145c4
Moved setup_plugin_ddl.sh.j2 to /roles/killbill to fix file not found…
vnandwana May 14, 2026
396b644
* Rolled back repo name to killbill.
vnandwana May 21, 2026
213583f
Addressed lint error.
vnandwana May 21, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ansible/group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ kaui_webapps: webapps

tomcat_foreground: false

cloudsmith_token_aviate: kd355k1mdx5IL8TU
cloudsmith_url_aviate: "https://dl.cloudsmith.io/{{ cloudsmith_token_aviate }}"

# Base directory for namespacing
kb_install_dir: /var/lib/killbill
# Configuration files (killbill.properties, JRuby files, etc.)
Expand Down
8 changes: 8 additions & 0 deletions ansible/install_plugins.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
- name: Install Plugins
hosts: all
tasks:
- name: Install plugins
ansible.builtin.include_role:
name: killbill
tasks_from: install_plugins
115 changes: 115 additions & 0 deletions ansible/roles/killbill/files/adyen_ddl.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
/*
* Copyright 2020-2023 Equinix, Inc
* Copyright 2014-2023 The Billing Project, LLC
*
* The Billing Project licenses this file to you under the Apache License, version 2.0
* (the "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/

/*! SET default_storage_engine=INNODB */;

drop table if exists adyen_hpp_requests;
create table adyen_hpp_requests (
record_id serial
, kb_account_id char(36) not null
, kb_payment_id char(36) default null
, kb_payment_transaction_id char(36) default null
, transaction_external_key varchar(255) not null
, additional_data longtext default null
, created_date datetime not null
, kb_tenant_id char(36) not null
, primary key(record_id)
) /*! CHARACTER SET utf8 COLLATE utf8_bin */;
create index adyen_hpp_requests_kb_account_id on adyen_hpp_requests(kb_account_id);
create index adyen_hpp_requests_kb_transaction_external_key on adyen_hpp_requests(transaction_external_key);
create index adyen_hpp_requests_kb_payment_transaction_id on adyen_hpp_requests(kb_payment_transaction_id);

drop table if exists adyen_responses;
create table adyen_responses (
record_id serial
, kb_account_id char(36) not null
, kb_payment_id char(36) not null
, kb_payment_transaction_id char(36) not null
, transaction_type varchar(32) not null
, transaction_status varchar(32) not null
, amount numeric(15,9)
, currency char(3)
, session_id char(36) default null
, psp_result varchar(64)
, psp_reference varchar(64)
, auth_code varchar(64)
, result_code varchar(64)
, refusal_reason varchar(64)
, reference varchar(64)
, psp_error_codes varchar(64)
, payment_internal_ref varchar(64)
, form_url varchar(1024)
, dcc_amount numeric(15,9)
, dcc_currency char(3)
, dcc_signature varchar(64)
, issuer_url varchar(1024)
, md text
, pa_request text
, additional_data longtext default null
, created_date datetime not null
, kb_tenant_id char(36) not null
, primary key(record_id)
) /*! CHARACTER SET utf8 COLLATE utf8_bin */;
create index adyen_responses_kb_payment_id on adyen_responses(kb_payment_id);
create index adyen_responses_kb_payment_transaction_id on adyen_responses(kb_payment_transaction_id);
create index psp_reference_idx on adyen_responses(psp_reference);

drop table if exists adyen_notifications;
create table adyen_notifications (
record_id serial
, kb_account_id char(36)
, kb_payment_id char(36)
, kb_payment_transaction_id char(36)
, transaction_type varchar(32)
, amount numeric(15,9)
, currency char(3)
, event_code varchar(64)
, event_date datetime
, merchant_account_code varchar(64)
, merchant_reference varchar(64)
, operations varchar(1024)
, original_reference varchar(64)
, payment_method varchar(64)
, psp_reference varchar(255)
, reason text
, success smallint not null default 0
, additional_data longtext default null
, created_date datetime not null
, kb_tenant_id char(36)
, primary key(record_id)
) /*! CHARACTER SET utf8 COLLATE utf8_bin */;
-- Not unique to handle retries
create index adyen_notifications_psp_reference on adyen_notifications(psp_reference);
create index adyen_notifications_kb_payment_id on adyen_notifications(kb_payment_id);
create index adyen_notifications_kb_payment_transaction_id on adyen_notifications(kb_payment_transaction_id);

drop table if exists adyen_payment_methods;
create table adyen_payment_methods (
record_id serial
, kb_account_id char(36) not null
, kb_payment_method_id char(36) not null
, is_recurring smallint not null default 0
, is_default smallint not null default 0
, is_deleted smallint not null default 0
, recurring_detail_reference char(36) default null
, additional_data longtext default null
, created_date datetime not null
, updated_date datetime not null
, kb_tenant_id char(36) not null
, primary key(record_id)
) /*! CHARACTER SET utf8 COLLATE utf8_bin */;
create unique index adyen_payment_methods_kb_payment_id on adyen_payment_methods(kb_payment_method_id);
Loading
Loading