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 |
|---|---|
| invoice_id * | The id of the invoice to updated |
| buyer_email | The buyer's email address |
| buyer_sms | The buyer's cell number |
| sms_code | The buyer's received verification code |
Example
NoteIn this example, we assume that a Client has already been initialized and assigned to the
bitpayvariable.
result = bitpay.update_invoice('someInvoiceId', '[email protected]')