Facades: merchant
Overview
Update an invoice status to either confirmed or complete with a mock transaction to help speed up the testing.
WarningPayInvoice is only available in the
testenvironment.
Parameters
| Parameter | Description |
|---|---|
| invoiceId | The id of the invoice to updated. |
| status | The status of the invoice to be updated, can be confirmed or complete. |
Example
Invoice paidInvoice = bitpay.payInvoice("QrPWSMkq594kQfJex28S7X", true);