Facades: merchant
Overview
Update an invoice with SMS or email in order to respond to a payment exception.
Note
- Updating the invoice will require EITHER an SMS or E-mail, but not both.
- smsCode required only when verifying SMS.
- autoVerify is only available in Sandbox environment.
Parameters
| Parameter | Description |
|---|---|
| invoiceId | The id of the invoice to updated. |
| buyerSms | The buyer's cell number. |
| smsCode | The buyer's received verification code. |
| buyerEmail | The buyer's email address. |
| autoVerify | Skip the user verification in the test environment only. |
Example
Invoice updateInvoice = bitpay.updateInvoice("QrPWSMkq594kQfJex28S7X", null, null "[email protected]", false");