diff --git a/install.xml b/install.xml new file mode 100644 index 0000000..5d71920 --- /dev/null +++ b/install.xml @@ -0,0 +1,14 @@ + + + CoinGate + coningate + 3.1.3 + Ivan + + + + request->post['code']) != 3)]]> + request->post['code']), array(3, 4)))]]> + + + diff --git a/upload/admin/controller/extension/payment/coingate.php b/upload/admin/controller/extension/payment/coingate.php index 95596ee..3a48c26 100644 --- a/upload/admin/controller/extension/payment/coingate.php +++ b/upload/admin/controller/extension/payment/coingate.php @@ -1,6 +1,6 @@ db->query(" + SELECT character_maximum_length + FROM information_schema.columns + WHERE table_name = '" . DB_PREFIX . "currency' and column_name = 'code'; + "); + if ((int)$query->row['character_maximum_length'] < 4) { + $this->db->query(" + ALTER TABLE `" . DB_PREFIX . "currency` + MODIFY `code` VARCHAR(4) COLLATE utf8_general_ci NOT NULL; + "); + } + $this->load->model('setting/setting'); $defaults = array(); diff --git a/upload/catalog/controller/extension/payment/coingate.php b/upload/catalog/controller/extension/payment/coingate.php index d27fbc8..1d05a30 100644 --- a/upload/catalog/controller/extension/payment/coingate.php +++ b/upload/catalog/controller/extension/payment/coingate.php @@ -1,7 +1,7 @@ $this->url->link('extension/payment/coingate/callback', array('cg_token' => $token), true), 'success_url' => $this->url->link('extension/payment/coingate/success', array('cg_token' => $token), true), 'title' => $this->config->get('config_meta_title') . ' Order #' . $order_info['order_id'], - 'description' => join($description, ', '), + 'description' => join(', ', $description), 'token' => $token )); diff --git a/upload/system/library/coingate/coingate-php/init.php b/upload/system/library/vendor/coingate/init.php old mode 100755 new mode 100644 similarity index 100% rename from upload/system/library/coingate/coingate-php/init.php rename to upload/system/library/vendor/coingate/init.php diff --git a/upload/system/library/coingate/coingate-php/lib/ApiError.php b/upload/system/library/vendor/coingate/lib/ApiError.php old mode 100755 new mode 100644 similarity index 100% rename from upload/system/library/coingate/coingate-php/lib/ApiError.php rename to upload/system/library/vendor/coingate/lib/ApiError.php diff --git a/upload/system/library/coingate/coingate-php/lib/CoinGate.php b/upload/system/library/vendor/coingate/lib/CoinGate.php old mode 100755 new mode 100644 similarity index 100% rename from upload/system/library/coingate/coingate-php/lib/CoinGate.php rename to upload/system/library/vendor/coingate/lib/CoinGate.php diff --git a/upload/system/library/coingate/coingate-php/lib/Exception.php b/upload/system/library/vendor/coingate/lib/Exception.php old mode 100755 new mode 100644 similarity index 100% rename from upload/system/library/coingate/coingate-php/lib/Exception.php rename to upload/system/library/vendor/coingate/lib/Exception.php diff --git a/upload/system/library/coingate/coingate-php/lib/Merchant.php b/upload/system/library/vendor/coingate/lib/Merchant.php old mode 100755 new mode 100644 similarity index 100% rename from upload/system/library/coingate/coingate-php/lib/Merchant.php rename to upload/system/library/vendor/coingate/lib/Merchant.php diff --git a/upload/system/library/coingate/coingate-php/lib/Merchant/Order.php b/upload/system/library/vendor/coingate/lib/Merchant/Order.php old mode 100755 new mode 100644 similarity index 100% rename from upload/system/library/coingate/coingate-php/lib/Merchant/Order.php rename to upload/system/library/vendor/coingate/lib/Merchant/Order.php diff --git a/upload/system/library/coingate/version.php b/upload/system/library/vendor/coingate/version.php similarity index 100% rename from upload/system/library/coingate/version.php rename to upload/system/library/vendor/coingate/version.php