Skip to content

Commit

Permalink
Merge pull request #21 from thejoshualewis/master
Browse files Browse the repository at this point in the history
api token fix
  • Loading branch information
thejoshualewis committed Jul 24, 2019
2 parents 6240d84 + d46763d commit 0804353
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion code/Bitpay/BPCheckout/Model/IpnManagement.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,6 @@ public function createMGInvoice($order)
}
public function getExtensionVersion()
{
return 'Bitpay_BPCheckout_Magento2_3.0.8.0';
return 'Bitpay_BPCheckout_Magento2_3.0.9.0';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function execute(\Magento\Framework\Event\Observer $observer)
if ($env == 'prod'):
$bitpay_token = $this->getStoreConfig('payment/bpcheckout/bitpay_prodtoken');
endif;
if($bitpay_token == '' || strlen($bitpay_token) != 44):
if($bitpay_token == ''):
#hide the payment method
$checkResult = $observer->getEvent()->getResult();
$checkResult->setData('is_available', false); //this is disabling the payment method at checkout page
Expand Down
2 changes: 1 addition & 1 deletion code/Bitpay/BPCheckout/Observer/BPRedirect.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public function execute(\Magento\Framework\Event\Observer $observer)
} //end execute function
public function getExtensionVersion()
{
return 'Bitpay_BPCheckout_Magento2_3.0.8.0';
return 'Bitpay_BPCheckout_Magento2_3.0.9.0';

}

Expand Down
2 changes: 1 addition & 1 deletion code/Bitpay/BPCheckout/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "",
"type": "magento2-module",
"license": "mit",
"version":"3.0.8",
"version":"3.0.9",
"authors": [
{
"email": "integrations@bitpay.com",
Expand Down
2 changes: 1 addition & 1 deletion code/Bitpay/BPCheckout/etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
<module name="Bitpay_BPCheckout" setup_version="3.0.8.0"></module>
<module name="Bitpay_BPCheckout" setup_version="3.0.9.0"></module>
</config>

0 comments on commit 0804353

Please sign in to comment.