Pay an Invoice

Facades: merchant

Overview

Update an invoice status to either confirmed or completed with a mock transaction to help speed up the testing.

🚧

Note

PayInvoice is only available in the test environment.

Parameters

ParameterDescription
invoiceIdThe id of the invoice to updated.
statusThe status of the invoice to be updated, can be confirmed or complete.

Example

await client.payInvoice('invoiceId', 'confirmed');