Facades: merchant
Overview
Update an invoice status to either confirmed or complete with a mock transaction to help speed up the testing.
NotePayInvoice is only available in the
testenvironment.
Parameters
| Parameter | Description |
|---|---|
| invoice_id * | The Id of the BitPay invoice |
| status | Indicate if paid invoice should have status if complete true or a confirmed status (default: complete) |
Example
NoteIn this example, we assume that a Client has already been initialized and assigned to the
bitpayvariable.
bitpay.pay('someInvoiceId')