Facades: merchant
Overview
Update an invoice status to either confirmed or completed with a mock transaction to help speed up the testing.
NotePayInvoice 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. |
To get the generated invoices filtered by query parameters
$basicInvoice = $bitpay->createInvoice(new Invoice(0.1, Currency::BTC));
$payInvoice = $bitpay->payInvoice($basicInvoice->getId(), "confirmed");