diff --git a/modules/btcpay/btcpay.php b/modules/btcpay/btcpay.php index 825c987..59e293f 100644 --- a/modules/btcpay/btcpay.php +++ b/modules/btcpay/btcpay.php @@ -63,7 +63,7 @@ public function __construct() { $this->name = 'btcpay'; $this->tab = 'payments_gateways'; - $this->version = '6.0.1'; + $this->version = '6.0.2'; $this->author = 'BTCPay Server'; $this->ps_versions_compliancy = ['min' => Constants::MINIMUM_PS_VERSION, 'max' => _PS_VERSION_]; $this->controllers = ['payment', 'validation', 'webhook']; @@ -357,20 +357,6 @@ public function hookDisplayOrderDetail(array $params): ?string } } - public function hookDisplayPaymentEU(): array - { - // If the module is not active, abort - if (!$this->active) { - return []; - } - - return [ - 'cta_text' => $this->name, - 'logo' => Media::getMediaPath(_PS_MODULE_DIR_ . $this->name . '/views/images/bitcoin.png'), - 'action' => $this->context->link->getModuleLink($this->name, 'payment', [], true), - ]; - } - /** * Hooks on prestashop payment returns * diff --git a/modules/btcpay/src/Installer/Hooks.php b/modules/btcpay/src/Installer/Hooks.php index 34d594a..a2fab66 100644 --- a/modules/btcpay/src/Installer/Hooks.php +++ b/modules/btcpay/src/Installer/Hooks.php @@ -20,7 +20,6 @@ public function install(): array { if (!$this->module->registerHook('displayAdminOrderMainBottom') || !$this->module->registerHook('displayOrderDetail') - || !$this->module->registerHook('displayPaymentEU') || !$this->module->registerHook('paymentReturn') || !$this->module->registerHook('paymentOptions') || !$this->module->registerHook('actionCartSave')) { diff --git a/modules/btcpay/upgrade/upgrade-6.0.2.php b/modules/btcpay/upgrade/upgrade-6.0.2.php new file mode 100644 index 0000000..4b67636 --- /dev/null +++ b/modules/btcpay/upgrade/upgrade-6.0.2.php @@ -0,0 +1,19 @@ +unregisterHook('displayPaymentEU'); +}