This method gets called when the invoice is being paid.
Syntax
String
payInvoice
(
Invoice
invoice
,
long
txnId
) throws BillPaymentHandlerException
Parameters
-
invoice –
the invoice to pay
Returns
A reference for the bill payment process, can be null if no external reference is generated
Exceptions
-
BillPaymentHandlerException –
if the bill cannot be closed, this will result in the transaction being rolled back.
Usage
The money from the payer is already secured.
A reference for the bill payment process, can be null if no external reference is generated