BitPay PHP SDK

InvoiceStatus

The type Invoice status.

Tags
author

BitPay Integrations integrations@bitpay.com

license

http://www.opensource.org/licenses/mit-license.php MIT

see
https://bitpay.readme.io/reference/invoices

REST API Invoices

Table of Contents

Constants

COMPLETE  = 'complete'
When an invoice has the status complete, it means that BitPay has credited the merchant account, in the currency indicated in the settlement settings. For instance, with invoices paid in Bitcoin (BTC), 6 confirmation blocks on the bitcoin network are required for an invoice to be complete, this takes on average 1 hour.
CONFIRMED  = 'confirmed'
This status can be used by merchants in order to fulfill orders placed by the consumer.
DECLINED  = 'declined'
An invoice in the declined status is no longer eligible to be successfully completed, and the customer will be automatically contacted regarding a refund if needed.
EXPIRED  = 'expired'
An invoice reaches the expired status if no payment was received and the 15 minute payment window has elapsed.
INVALID  = 'invalid'
An invoice is considered invalid when it was paid, but the corresponding cryptocurrency transaction was not confirmed within 1 hour on the corresponding blockchain.
NEW  = 'new'
An invoice starts in this state. When in this state and only in this state, payments broadcasted by purchasers be applied to the invoice (there is a 15 minute window for the purchaser to send a payment from their crypto wallet). If an invoice has received a partial payment, it will still reflect a status of new to the merchant. From a merchant system perspective, an invoice is either paid or not paid, partial payments are automatically refunded by BitPay to the consumer.
PAID  = 'paid'
As soon as payment is received it is evaluated against the invoice requested amount.

Constants

COMPLETE

When an invoice has the status complete, it means that BitPay has credited the merchant account, in the currency indicated in the settlement settings. For instance, with invoices paid in Bitcoin (BTC), 6 confirmation blocks on the bitcoin network are required for an invoice to be complete, this takes on average 1 hour.

public mixed COMPLETE = 'complete'

CONFIRMED

This status can be used by merchants in order to fulfill orders placed by the consumer.

public mixed CONFIRMED = 'confirmed'

Merchants can configure the timing at which BitPay sets this specific invoice status, depending on the number of confirmation achieved by the consumer's transaction in the selected cryptocurrency. This can be configured during invoice creation using the "transactionSpeed" parameter (section Create an invoice), or at account level via a dashboard setting.

DECLINED

An invoice in the declined status is no longer eligible to be successfully completed, and the customer will be automatically contacted regarding a refund if needed.

public mixed DECLINED = 'declined'

Reason for this status include cancelling an invoice before completion and the invoice remaining unconfirmed after a set time period - typically 24 hours.

EXPIRED

An invoice reaches the expired status if no payment was received and the 15 minute payment window has elapsed.

public mixed EXPIRED = 'expired'

INVALID

An invoice is considered invalid when it was paid, but the corresponding cryptocurrency transaction was not confirmed within 1 hour on the corresponding blockchain.

public mixed INVALID = 'invalid'

It is possible that some transactions can take longer than 1 hour to be included in a block. If the transaction confirms after 1 hour, BitPay will update the invoice state from "invalid" to "complete" (6 confirmations for transactions on the bitcoin network for instance).

NEW

An invoice starts in this state. When in this state and only in this state, payments broadcasted by purchasers be applied to the invoice (there is a 15 minute window for the purchaser to send a payment from their crypto wallet). If an invoice has received a partial payment, it will still reflect a status of new to the merchant. From a merchant system perspective, an invoice is either paid or not paid, partial payments are automatically refunded by BitPay to the consumer.

public mixed NEW = 'new'

PAID

As soon as payment is received it is evaluated against the invoice requested amount.

public mixed PAID = 'paid'

If the amount paid is equal to or greater than the amount expected then the invoice is marked as being paid. To detect whether the invoice has been overpaid consult the invoice exception status (exceptionStatus parameter). The overpaid amount on an invoice is automatically refunded by BitPay to the consumer.


        
On this page

Search results