Skip to content

Commit

Permalink
Merge branch 'release/2.13.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
JBaptisteLvt committed Jul 31, 2023
2 parents 1e8529a + 47faf82 commit 5c1ffb8
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## Version 2.13.0

- [fix]: Fixed `basket` element in `transaction` object
- [add]: Add Hosted Page to demo page

## Version 2.12.4

- [fix]: Fixed `reference_to_pay` field in `Transaction` class
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"lint": "phpcs -p --standard=PHPCompatibility lib/ tests/"
},
"homepage": "https://hipay.com/product-enterprise/",
"version": "2.12.4",
"version": "2.13.0",
"license": "Apache-2.0",
"authors": [
{
Expand Down
10 changes: 9 additions & 1 deletion lib/HiPay/Fullservice/Gateway/Client/GatewayClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,15 @@ public function requestTransactionInformation($transactionReference)
return null;
}

$transactionMapper = new TransactionMapper($data['transaction']);
$res = $data["transaction"];

if(isset($data['basket'])) {
$res["basket"] = $data["basket"];
} else {
$res["basket"] = null;
}

$transactionMapper = new TransactionMapper($res);

/** @var Transaction $transaction */
$transaction = $transactionMapper->getModelObjectMapped();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ class HostedPaymentPageRequest extends OrderRequest
*/
public $multi_use;

/**
* @var string The theme code.
*/
public $theme_code;

/**
* @return void
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public function testRequestCanBeExecutedWithProxy(ClientProvider $client)
$client->setConfiguration($conf);

$this->expectException(CurlException::class);
$this->expectExceptionMessage('Failed to connect to 127.0.0.1 port 25565: Connection refused');
$this->expectExceptionMessage('Failed to connect to 127.0.0.1 port 25565');

$client->request('GET', "/");
}
Expand Down

0 comments on commit 5c1ffb8

Please sign in to comment.