From 9c0220136c7e94152ea7ecd2aa1b3f6ed92093f9 Mon Sep 17 00:00:00 2001 From: JKacicM Date: Wed, 14 Aug 2024 12:53:03 -0400 Subject: [PATCH] Log Version --- Model/Simplified.php | 5 ++++- README.md | 19 +++++++++++++++++-- composer.json | 2 +- etc/module.xml | 2 +- 4 files changed, 23 insertions(+), 5 deletions(-) diff --git a/Model/Simplified.php b/Model/Simplified.php index f1b0e4b..7241af7 100755 --- a/Model/Simplified.php +++ b/Model/Simplified.php @@ -23,7 +23,9 @@ class Simplified extends \Magento\Payment\Model\Method\AbstractMethod { - const KHIPU_MAGENTO_VERSION = "2.4.10"; + const KHIPU_MAGENTO_VERSION = "2.5.1"; + const API_VERSION = "3.0"; + protected $_code = 'simplified'; protected $_isInitializeNeeded = true; protected $urlBuilder; @@ -105,6 +107,7 @@ public function getKhipuRequest(Order $order) 'Content-Type: application/json', 'x-api-key: ' . $apiKey, ]); + curl_setopt($ch, CURLOPT_USERAGENT, "khipu-api-php-client/" . self::API_VERSION . "|prestashop-khipu/" . self::KHIPU_MAGENTO_VERSION); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($paymentData)); curl_setopt($ch, CURLOPT_TIMEOUT, 30); // Timeout in seconds diff --git a/README.md b/README.md index 17381fc..fa32d6c 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Magento 2 Khipu Plugin -khipu payment gateway Magento 2.5 plugin. +khipu payment gateway Magento 2.5.1 plugin. This version is compatible with Magento 2.3 to 2.6 @@ -8,7 +8,7 @@ You can sign up for khipu account at ## Install via Composer -You can install Magento 2.5 khipu plugin via [Composer](http://getcomposer.org/). Run the following command in your terminal: +You can install Magento 2.5.1 khipu plugin via [Composer](http://getcomposer.org/). Run the following command in your terminal: 1. Go to your Magento 2 root folder. @@ -30,3 +30,18 @@ You can install Magento 2.5 khipu plugin via [Composer](http://getcomposer.org/) ``` 4. Enable and configure Khipu plugin in Magento Admin under `Stores / Configuration / Sales / Payment Methods / Khipu`. + + +## Install via FTP +1. Copia y descomprime el archivo en la carpeta de plugins de Magento +2. Enter following commands to enable plugin: + + ```bash + php bin/magento module:enable Khipu_Payment --clear-static-content + php bin/magento setup:upgrade + php bin/magento setup:di:compile + php bin/magento cache:flush + ``` + +4. Enable and configure Khipu plugin in Magento Admin under `Stores / Configuration / Sales / Payment Methods / Khipu`. + diff --git a/composer.json b/composer.json index c3ff47b..c6aa582 100755 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "khipu/magento2-khipu", "type": "magento2-module", "description": "khipu integration for Magento 2", - "version": "2.5", + "version": "2.5.1", "homepage": "https://khipu.com", "license": [ "OSL-3.0" diff --git a/etc/module.xml b/etc/module.xml index 9e4e3a5..e87f047 100755 --- a/etc/module.xml +++ b/etc/module.xml @@ -1,6 +1,6 @@ - +