Update an Invoice

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

ParameterDescription
invoiceIdThe id of the invoice to updated.
buyerSmsThe buyer's cell number.
smsCodeThe buyer's received verification code.
buyerEmailThe buyer's email address.
autoVerifySkip the user verification in the test environment only.

Example

$updateInvoice = $bitpay->cancelInvoice("QrPWSMkq594kQfJex28S7X", null, null "[email protected]", false");