pay method

Pays the invoice online through the payment gateway.

Implementation

Future<void> pay(UDormBedInvoiceResponse i) async {
  if (await UIpgFlow.pay(
    p: UIpgPayParams(amount: i.netDue, tag: TagTxn.dormInvoice, invoiceId: i.id),
  ))
    await read();
}