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
const params = {
buyerSms: '123321312'
};
const updatedInvoice = await client.updateInvoice('someId', params)