Skip to content

Commit

Permalink
Log Version
Browse files Browse the repository at this point in the history
  • Loading branch information
JKacicM committed Aug 14, 2024
1 parent 89c694b commit 9c02201
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 5 deletions.
5 changes: 4 additions & 1 deletion Model/Simplified.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# 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

You can sign up for khipu account at <https://khipu.com>

## 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.

Expand All @@ -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`.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Khipu_Payment" setup_version="2.5" active="true">
<module name="Khipu_Payment" setup_version="2.5.1" active="true">
<sequence>
<module name="Magento_Sales"/>
<module name="Magento_Checkout"/>
Expand Down

0 comments on commit 9c02201

Please sign in to comment.