Skip to content

Commit

Permalink
Merge pull request #13 from khipu/heads/3.6
Browse files Browse the repository at this point in the history
Version 3.6
  • Loading branch information
JKacicM authored Apr 25, 2024
2 parents eda4de8 + eb13c20 commit 8db8bca
Show file tree
Hide file tree
Showing 11 changed files with 117 additions and 88 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"require": {
"khipu/khipu-api-client": "*"
"khipu/khipu-api-client": "3.0.0.x-dev"
}
}
2 changes: 1 addition & 1 deletion includes/abstract-wc-gateway-khipu.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function create_payment($order_id)
$configuration = new Khipu\Configuration();
$configuration->setSecret($this->secret);
$configuration->setReceiverId($this->receiver_id);
$configuration->setPlatform('woocommerce-khipu', '3.5');
$configuration->setPlatform('woocommerce-khipu', '3.6');
// $configuration->setDebug(true);

$client = new Khipu\ApiClient($configuration);
Expand Down
7 changes: 4 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
Contributors: khipu
Donate link:
Tags: payment gateway, khipu, woocommerce, chile
Requires at least: 3.3
Tested up to: 6.0.1
Stable tag: 3.5
Requires at least: 6.0
Tested up to: 6.5.2
Stable tag: 3.6
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand All @@ -31,6 +31,7 @@ No hay preguntas aún.
3. https://s3.amazonaws.com/static.khipu.com/id-cobrador.png

== Changelog ==
3.6 Compatible con PHP8
3.5 Incluye detalle de compra en el comprobante de pago
3.4 Habilitado para operar en Chile, Argentina y España
3.2 Compatible con Wordpress 6.0
Expand Down
30 changes: 17 additions & 13 deletions vendor/khipu/khipu-api-client/lib/Model/AuthorizationError.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,46 +149,50 @@ public function setMessage($message)
$this->message = $message;
return $this;
}

/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @param integer $offset Offset
* @return boolean
*/
#[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->$offset);
return isset($this->data[$offset]);
}

/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
* @param integer $offset Offset
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return $this->$offset;
return isset($this->data[$offset]);
}

/**
* Sets value based on offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
$this->$offset = $value;
$this->data[$offset]= $value;
}

/**
* Unsets offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->$offset);
unset($this->data[$offset]);
}

/**
Expand Down
30 changes: 17 additions & 13 deletions vendor/khipu/khipu-api-client/lib/Model/BankItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,46 +277,50 @@ public function setParent($parent)
$this->parent = $parent;
return $this;
}

/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @param integer $offset Offset
* @return boolean
*/
#[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->$offset);
return isset($this->data[$offset]);
}

/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
* @param integer $offset Offset
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return $this->$offset;
return isset($this->data[$offset]);
}

/**
* Sets value based on offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
$this->$offset = $value;
$this->data[$offset]= $value;
}

/**
* Unsets offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->$offset);
unset($this->data[$offset]);
}

/**
Expand Down
30 changes: 17 additions & 13 deletions vendor/khipu/khipu-api-client/lib/Model/ErrorItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,46 +149,50 @@ public function setMessage($message)
$this->message = $message;
return $this;
}

/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @param integer $offset Offset
* @return boolean
*/
#[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->$offset);
return isset($this->data[$offset]);
}

/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
* @param integer $offset Offset
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return $this->$offset;
return isset($this->data[$offset]);
}

/**
* Sets value based on offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
$this->$offset = $value;
$this->data[$offset]= $value;
}

/**
* Unsets offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->$offset);
unset($this->data[$offset]);
}

/**
Expand Down
30 changes: 17 additions & 13 deletions vendor/khipu/khipu-api-client/lib/Model/PaymentMethodItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,46 +181,50 @@ public function setLogoUrl($logo_url)
$this->logo_url = $logo_url;
return $this;
}

/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @param integer $offset Offset
* @return boolean
*/
#[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->$offset);
return isset($this->data[$offset]);
}

/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
* @param integer $offset Offset
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return $this->$offset;
return isset($this->data[$offset]);
}

/**
* Sets value based on offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
$this->$offset = $value;
$this->data[$offset]= $value;
}

/**
* Unsets offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->$offset);
unset($this->data[$offset]);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -379,19 +379,21 @@ public function setReadyForTerminal($ready_for_terminal)
* @param integer $offset Offset
* @return boolean
*/
#[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->$offset);
return isset($this->data[$offset]);
}

/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return $this->$offset;
return isset($this->data[$offset]);
}

/**
Expand All @@ -400,19 +402,21 @@ public function offsetGet($offset)
* @param mixed $value Value to be set
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
$this->$offset = $value;
$this->data[$offset]= $value;
}

/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->$offset);
unset($this->data[$offset]);
}

/**
Expand Down
Loading

0 comments on commit 8db8bca

Please sign in to comment.