Advice and answers from the BitPay Team

Problem

  • When using the WooCommerce Sequential Order Numbers plugin, your customers will receive a different order number from what was displayed on the BitPay invoice. You will also see this different order number on the orders page in your admin backend.

Solution

The Sequential Order Numbers plugin generates it's own order number that is different from the order number used internally by WooCommerce. The BitPay plugin uses the standard WooCommerce order number so uninstalling the Sequential Order Numbers plugin will resolve this issue.

If you absolutely must use the Sequential Order Numbers plugin but also need the standard WooCommerce order number that is displayed on the BitPay invoice, you can add one line of code to our plugin which will insert an additional order note containing the internally-used WooCommerce order number. This will not, however, be displayed to your customers on their order receipt.

Note: Any modifications to the BitPay plugin are not supported and could potentially break when future versions of the plugin are installed. Only edit these plugin files if you have at least a basic grasp of the PHP programming language and have made a backup of the file you are editing.

Depending on your WooCommerce installation and the version of our bitcoin payment plugin you are using, there are two different methods to use.

For merchants using our older v1 plugin, in the callback.php file, bitpay_callback() function, switch/case block for handling the IPN message type, add this line to the "paid" message case:

$order->add_order_note( __('Payment received for BitPay invoice '. $orderID . '. Waiting for confirmation.', 'woothemes') );

For merchants using our newer v2 plugin, in the class-wc-gateway-bitpay.php, ipn_callback() function, in the switch/case block for handling the IPN message type, edit this line in the "paid" message case:

$order->add_order_note(__('BitPay invoice paid. Awaiting network confirmation and payment completed status.','bitpay'));

And change the line to this:

$order->add_order_note(__('BitPay invoice '. $order_id .' paid. Awaiting network confirmation and payment completed status.','bitpay'));

Now when you view the details for an order, it will indicate the standard WooCommerce order number that BitPay displays on your invoices along with the different Sequential Order Number id.

Effects

  • Any merchant using WooCommerce and the Sequential Order Numbers plugin in conjunction with the BitPay payment plugin.
Did this answer your question?