diff --git a/BitPayLib/class-bitpayipnprocess.php b/BitPayLib/class-bitpayipnprocess.php
index 64d98a8..7d22a14 100644
--- a/BitPayLib/class-bitpayipnprocess.php
+++ b/BitPayLib/class-bitpayipnprocess.php
@@ -146,9 +146,7 @@ private function process_confirmed( Invoice $bitpay_invoice, WC_Order $order ):
$wordpress_order_status = $this->get_gateway_settings()['bitpay_checkout_order_process_confirmed_status'];
if ( WcGatewayBitpay::IGNORE_STATUS_VALUE === $wordpress_order_status ) {
$order->add_order_note(
- 'BitPay Invoice ID: ' . $invoice_id
- . ' has changed to Confirmed. The order status has not been updated due to your settings.'
+ $this->get_start_order_note( $invoice_id ) . ' has changed to Confirmed. The order status has not been updated due to your settings.'
);
return;
}
@@ -160,8 +158,7 @@ private function process_confirmed( Invoice $bitpay_invoice, WC_Order $order ):
}
$order->add_order_note(
- 'BitPay Invoice ID: ' . $invoice_id . ' has changed to ' . $new_status . '.'
+ $this->get_start_order_note( $invoice_id ) . ' has changed to ' . $new_status . '.'
);
if ( 'wc-completed' === $wordpress_order_status ) {
$order->payment_complete();
@@ -262,10 +259,15 @@ private function process_refunded( Invoice $bitpay_invoice, WC_Order $order ): v
private function process_processing( Invoice $bitpay_invoice, WC_Order $order ): void {
$this->validate_bitpay_status_in_available_statuses( $bitpay_invoice, array( 'paid' ) );
- $order->add_order_note( $this->get_start_order_note( $bitpay_invoice->getId() ) . 'is paid and awaiting confirmation.' );
+ $invoice_id = $bitpay_invoice->getId();
+ $order->add_order_note( $this->get_start_order_note( $invoice_id) . 'is paid and awaiting confirmation.' );
$wordpress_order_status = $this->get_gateway_settings()['bitpay_checkout_order_process_paid_status'];
if ( WcGatewayBitpay::IGNORE_STATUS_VALUE === $wordpress_order_status ) {
+ $order->add_order_note(
+ $this->get_start_order_note( $invoice_id )
+ . 'is paid and awaiting confirmation. The order status has not been updated due to your settings.'
+ );
return;
}