diff --git a/code/Bitpay/BPCheckout/Model/IpnManagement.php b/code/Bitpay/BPCheckout/Model/IpnManagement.php
index a58125e..59c3e97 100755
--- a/code/Bitpay/BPCheckout/Model/IpnManagement.php
+++ b/code/Bitpay/BPCheckout/Model/IpnManagement.php
@@ -356,8 +356,9 @@ public function postIpn()
break;
case 'invoice_expired':
- if ($invoice_status == 'expired'):
- $order->addStatusHistoryComment('BitPay Invoice ' . $order_invoice . ' has expired.');
+ case 'invoice_declined':
+ if ($invoice_status == 'expired' || $invoice_status == 'declined'):
+ $order->addStatusHistoryComment('BitPay Invoice ' . $order_invoice . ' has been declined / expired.');
if ($bitpay_cancel_mapping == "cancel"):
$order->setState(Order::STATE_CANCELED)->setStatus(Order::STATE_CANCELED);
endif;
@@ -401,6 +402,6 @@ public function createMGInvoice($order)
}
public function getExtensionVersion()
{
- return 'Bitpay_BPCheckout_Magento2_6.12.4';
+ return 'Bitpay_BPCheckout_Magento2_6.13.0';
}
}
diff --git a/code/Bitpay/BPCheckout/Observer/BPRedirect.php b/code/Bitpay/BPCheckout/Observer/BPRedirect.php
index 393ba1f..22546e8 100755
--- a/code/Bitpay/BPCheckout/Observer/BPRedirect.php
+++ b/code/Bitpay/BPCheckout/Observer/BPRedirect.php
@@ -328,7 +328,7 @@ public function execute(\Magento\Framework\Event\Observer $observer)
} //end execute function
public function getExtensionVersion()
{
- return 'Bitpay_BPCheckout_Magento2_6.12.4';
+ return 'Bitpay_BPCheckout_Magento2_6.13.0';
}
diff --git a/code/Bitpay/BPCheckout/composer.json b/code/Bitpay/BPCheckout/composer.json
index a18662a..dccd7bc 100644
--- a/code/Bitpay/BPCheckout/composer.json
+++ b/code/Bitpay/BPCheckout/composer.json
@@ -3,7 +3,7 @@
"description": "",
"type": "magento2-module",
"license": "mit",
- "version":"6.12.4",
+ "version":"6.13.0",
"authors": [
{
"email": "integrations@bitpay.com",
diff --git a/code/Bitpay/BPCheckout/etc/module.xml b/code/Bitpay/BPCheckout/etc/module.xml
index d9e100b..44b9481 100755
--- a/code/Bitpay/BPCheckout/etc/module.xml
+++ b/code/Bitpay/BPCheckout/etc/module.xml
@@ -5,5 +5,5 @@
*/
-->
-
+
\ No newline at end of file