Skip to content

Deposit plugin documentation - #720

Merged
reshmabidikar merged 3 commits into
killbill:v3from
reshmabidikar:deposit-plugin-docs
Nov 6, 2026
Merged

reshmabidikar merged 3 commits into
killbill:v3from
reshmabidikar:deposit-plugin-docs

Conversation

@reshmabidikar

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI balanced review requested due to automatic review settings November 6, 2026 05:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved tutorial inaccuracies can leave PostgreSQL tables missing and mislead readers about minimum-payment enforcement, request-level activation, and supported credit operations.

4 open issues
What changed in this PR

Adds documentation for recording offline invoice payments with the Deposit plugin, covering both API usage and Kaui workflows.

Changes:

  • Documents installation, database setup, configuration, payment behavior, and testing.
  • Adds a Kaui guide for recording deposits against account invoices.
  • Links the new documentation from the Kaui guide and main navigation.
File Description
userguide/​tutorials/​deposit-plugin.adoc Adds the Deposit plugin setup and API tutorial.
userguide/​kaui/​userguide_kaui.adoc Includes the new Deposit section.
userguide/​kaui/​includes/​deposit.adoc Documents the Kaui deposit workflow with screenshots.
html5/​_main_toc.html.slim Adds the Deposit plugin navigation link.

Review effort: Balanced

Comment thread userguide/tutorials/deposit-plugin.adoc Resolved
Comment thread userguide/tutorials/deposit-plugin.adoc Resolved
Comment thread userguide/tutorials/deposit-plugin.adoc Resolved
Comment thread userguide/tutorials/deposit-plugin.adoc Resolved
Copilot AI balanced review requested due to automatic review settings November 6, 2026 05:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The PostgreSQL setup instructions omit running the common table DDL after the domain definitions, leaving required deposit tables missing and causing deposit recording to fail.

2 open issues
3 resolved since last review

Review effort: Balanced

Comment thread userguide/tutorials/deposit-plugin.adoc Resolved
@reshmabidikar
reshmabidikar requested a review from KBbitsP November 6, 2026 06:06
Comment thread userguide/tutorials/deposit-plugin.adoc Resolved
Comment thread userguide/tutorials/deposit-plugin.adoc Resolved
Comment thread userguide/tutorials/deposit-plugin.adoc Outdated

NOTE: Entries with a missing or zero `paymentAmount` are skipped. Invoices are processed in the order specified in the request, and processing stops at the first error. Payments recorded for the invoices before the failing invoice are not rolled back.

== Partial Payments and Overpayments

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Partial Payments, Overpayments and Refunds

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 75d60f5

Comment thread userguide/tutorials/deposit-plugin.adoc Outdated

. https://apidocs.killbill.io/account#create-an-account[Create] a Kill Bill account. Save the **accountId** for further use.

. Create an https://apidocs.killbill.io/invoice#create-external-charge-s[external charge] of `500` USD on the account. Save the **invoiceNumber** of the generated invoice for further use.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

. Create an https://apidocs.killbill.io/invoice#create-external-charge-s[external charge] of 500 USD on the account with autoCommit=true, so that the invoice is committed. Save the invoiceNumber of the generated invoice for further use.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 75d60f5

Comment thread userguide/kaui/includes/deposit.adoc Outdated

1. Open the Deposit UI as explained above. The "Account ID" field is pre-populated with the current account, and the "Invoices" section lists the account invoices along with their balance.
2. Enter the following details:
* **Amount Received:** The total amount received. The currency of the account is displayed below this field.

@KBbitsP KBbitsP Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Amount Received: The total amount received. It should be equal to the sum of the amounts entered in the "Payment" column, otherwise Kaui displays a warning. Only the amounts entered in the "Payment" column are recorded. The currency of the account is displayed below this field.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 75d60f5

Comment thread userguide/kaui/includes/deposit.adoc Outdated
* **Amount Received:** The total amount received. The currency of the account is displayed below this field.
* **Payment Date:** The date on which the payment was received.
* **Payment Ref. #:** The reference of the payment, for example the wire or check number.
* **Payment Mode:** The mode of the payment, for example `Wire`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Payment Mode: The mode of the payment. Select one of Wire, Check, Cash or OTHER.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 75d60f5

Copilot AI balanced review requested due to automatic review settings November 6, 2026 06:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The PostgreSQL setup instructions omit the shared table DDL and required ordering, leaving deposit tables missing unless compatibility domains are created first and the shared DDL is then run.

No open issues 🎉

2 resolved since last review

Review effort: Balanced

@reshmabidikar
reshmabidikar merged commit 214e927 into killbill:v3 Nov 6, 2026
2 checks passed
@reshmabidikar
reshmabidikar deleted the deposit-plugin-docs branch November 6, 2026 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants