payInvoice method

Future<void> payInvoice(
  1. int invoiceId,
  2. int paymentId,
  3. double value, {
  4. required Object authorization,
})

Parameters:

  • int invoiceId (required):

  • int paymentId (required):

  • double value (required):

  • Object authorization:

Implementation

Future<void> payInvoice(
  int invoiceId,
  int paymentId,
  double value, {
  required Object authorization,
}) async {
  final response = await _payInvoiceWithHttpInfo(
    invoiceId,
    paymentId,
    value,
    authorization: authorization,
  );
  if (response.statusCode >= HttpStatus.badRequest) {
    throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  }
}