billAtStart to true.
When billAtStart is true, Transact Bridge collects the subscription amount before providing access to the service and generates the invoice at the start of the subscription period.
How Prepaid Invoices Work
The prepaid invoice flow works as follows:- The merchant creates a subscription with
billAtStart: true, which enters thePENDINGstate. Post succesfull payment by the customer, the subscription becomesACTIVE. - Here, the invoice is generated at the start of the subscription period.
- The customer receives access to the service for the applicable billing period.
- Before the next billing period begins, Transact Bridge generates an invoice for renewal which is auto-approved within fraction of seconds. And then Transact Bridge attempts to collect the recurring amount.
- If the renewal payment succeeds, the subscription continues into the next billing period.
- If If the collection fails, Transact Bridge applies the configured retry and invoice handling policies. The subscription configuration includes parameters such as
dayUntillDue,maxUnpaidInvoices,postMaxUnpaidInvoices, andreAttemptConfigto control unpaid-invoice and retry behavior.
Prepaid Invoice Flow
Example: Monthly Prepaid Subscription
Consider a customer subscribing to a monthly plan.Step 1: Subscription Creation/Activation
The merchant creates the subscription with:PENDING state. The customer receives the payment URL and makes the payment of ₹999. After successful payment the subscription becomes ACTIVE, and the customer can access the service.
The invoice for the subscription period is generated at the start of the subscription period.