Payment needed for $0 Invoice

20 views
Skip to first unread message

Vivek Manpuria (Vivek)

unread,
May 29, 2025, 1:25:28 AMMay 29
to Kill Bill users mailing-list
Dear Team,

By default, the __INVOICE_CONTROL_PLUGIN__ aborts payment for an invoice that is generated in the TRIAL phase.

Please could you advise how this default behavior can be modified to not abort the payment?

I could not find any config item. Therefore I was planning to take a look at any demo invoice control plugin but I am not sure if __INVOICE_CONTROL_PLUGIN__ is a default plugin and whether another invoice control plugin can override the default plugin.

Thank you,
Vivek

karan bansal

unread,
May 29, 2025, 10:47:01 AMMay 29
to Kill Bill users mailing-list
Hi Vivek,

Kindly check the property named org.killbill.payment.allow.emptyInvoice mentioned at https://docs.killbill.io/latest/userguide_configuration#_payment_properties.

Regards
Karan

Vivek Manpuria (Vivek)

unread,
May 30, 2025, 5:59:52 PMMay 30
to Kill Bill users mailing-list
Thank you.

- Vivek

Vivek

unread,
Oct 13, 2025, 3:27:53 AM (3 days ago) Oct 13
to karan bansal, Kill Bill users mailing-list
Hi Karan,

I have enabled the config, org.killbill.payment.allow.emptyInvoice=true. 
Although an invoice for $0 is now being generated, the payment is being aborted. I have attached the logs. Is there a way to not abort the payment?

--- payment is aborted ---

killbill-1  | {"@timestamp":"2025-10-13T03:24:12.952Z","message":"EXITING PaymentApi: transactionType='PURCHASE', accountId='17890eac-82a0-4ea8-a3dd-b79a5824e7f6', paymentControlPluginNames='__INVOICE_PAYMENT_CONTROL_PLUGIN__,lms-invoice', aborted=true, error='PAYMENT_PLUGIN_API_ABORTED', exception='Control plugin aborted call: __INVOICE_PAYMENT_CONTROL_PLUGIN__'","logger_name":"org.killbill.billing.payment.api.svcs.DefaultInvoicePaymentInternalApi","thread_name":"bus_events-th","level":"INFO","kb.userToken":"3138ac30-e045-46c2-89bd-efd177b78640","kb.tenantRecordId":"1","kb.accountRecordId":"2"}

--- $0 invoice is generated ---

killbill-1  | {"@timestamp":"2025-10-13T03:24:12.958Z","message":"Sending extBusEvent='DefaultBusExternalEvent{objectId=a079d558-bcae-449f-a2ce-0e197d2dad7f, accountId=17890eac-82a0-4ea8-a3dd-b79a5824e7f6, tenantId=c01bdb3e-5783-4b3d-acb7-b5002d10fb2a, objectType=INVOICE, eventType=INVOICE_CREATION}' from busEvent='DefaultInvoiceCreationNotification [invoiceId=a079d558-bcae-449f-a2ce-0e197d2dad7f, accountId=17890eac-82a0-4ea8-a3dd-b79a5824e7f6, amountOwed=0.00, currency=USD]'","logger_name":"org.killbill.billing.beatrix.extbus.BeatrixListener","thread_name":"bus_events-th","level":"INFO","kb.userToken":"3138ac30-e045-46c2-89bd-efd177b78640","kb.tenantRecordId":"1","kb.accountRecordId":"2"}


Thank you,
Vivek



--
You received this message because you are subscribed to the Google Groups "Kill Bill users mailing-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to killbilling-us...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/killbilling-users/a2934b1f-4e02-47ec-a97a-d5541d931a18n%40googlegroups.com.

karan bansal

unread,
Oct 13, 2025, 5:44:52 AM (3 days ago) Oct 13
to Kill Bill users mailing-list
Hi Vivek,

The property that I had mentioned should allow the 0 payment. I tried setting the same property at my end and I am able to generate as well as pay for 0 value invoices. Please check the attached screenshots.

Regards
Karan

Payment.PNG
Invoice.PNG

Vivek

unread,
Oct 13, 2025, 7:55:03 PM (3 days ago) Oct 13
to karan bansal, Kill Bill users mailing-list
Hi Karan

The $0 payment is no longer being aborted. I had picked up the KB_org_killbill_payment_allow_emptyinvoices config instead of the one without the 's' in the end.

Thank you,
Vivek


Reply all
Reply to author
Forward
0 new messages