Automating the customer’s invoice payments by charging their credit card reduces the likelihood of late or missed payments and ensures a predictable cash flow for you as a service provider.
For customers, this means they no longer have to remember payment due dates or take manual actions. Automatic credit card charging saves them time and spares them from service suspension and potential penalties for missing payment deadlines.
As a service provider, you have the flexibility to choose when to charge customers' credit cards – either immediately upon invoice generation or on the due date of the invoice.
Upon invoice generation
When a customer’s billing period closes, PortaBilling calculates the corresponding charges, creates the invoice, and processes the payment from the customer’s credit card. If the credit card payment was processed successfully, PortaBilling generates the invoice PDF with a zero amount due and “paid” status.
If the payment was not successful, e.g., the card had expired or had no available funds, the invoice reflects the amount due (the charges for the most recent billing period along with any outstanding balance from previous billing periods). In such cases, the invoice is assigned the "unpaid" status. If no payment is received by the due date (which is set based on Payment terms), the invoice status changes to “overdue” which may lead to service limitation/suspension (see Notifications and actions if payment is past due).
Upon invoice due date
If you choose this option, PortaBilling generates the invoice in PDF format and sends it to the customer and the invoice amount due is calculated according to the standard algorithm: based on the previous invoice balance, payments received during this period, and charges during this period. Customers can pay their invoice through any available channel, e.g., submitting a credit card payment via the self-care portal or doing a wire transfer. If on the due date there is still an unpaid amount on this invoice, PortaBilling automatically charges it amount to the customer's credit card.
You can use this feature to collect unpaid amounts not only for regular but also for out-of-turn invoices.
Say a $30 invoice is generated on September 1st. On September 5th, the customer makes a partial payment of $20. On September 15th, the invoice due date, PortaBilling calculates the remaining unpaid amount ($30-$20=$10) and automatically charges the customer’s credit card for the outstanding $10. This payment ensures that the invoice is fully settled, and the customer can continue using their service without any interruptions.
Additional attempts
You can configure PortaBilling to re-attempt collecting customer payments in case the initial attempt fails, e.g., due to lack of available funds.
PortaBilling can make additional attempts to charge the customer’s credit card before (if the initial attempt is made upon invoice generation) and after the invoice due date.
In the customer class settings, you can specify when the additional attempts should be made, e.g., if you specify “0,3,7” in the Additional attempts after the due date, days field, this means that PortaBilling will attempt to charge the customer’s credit card on the due date, 3 days after the due date, and 7 days after the due date.
Let’s say you configured PortaBilling to automatically charge the customer’s credit card upon invoice generation, and if the transaction fails, to perform an additional attempt 5 days before the invoice due date.
On April 1, ABC company receives their March invoice with an amount due of $50. PortaBilling attempts to charge the customer’s credit card for $50 but there are insufficient funds, resulting in a failed payment. Invoice will be due on April 15th. On April 10th,
5 days before the due date, PortaBilling initiates another attempt to charge the customer's credit card for the $50. This time, the payment is successful, and the March invoice’s status changes to “paid.”
Configuration
Automatic credit card charging can be enabled at the customer class level, for regular and out-of-turn invoices separately:
- Go to Customer class > Finances > Invoicing > Regular/Out-of-turn invoices
- Specify the payment terms
- Specify when the credit cards should be charged: upon invoice generation or on the due date
- Define when additional attempts to charge the customer’s credit card should be made