Skip to content

Commit eab803f

Browse files
authored
Merge pull request #55 from paynl/rc-1.1.3
Rc 1.1.3
2 parents 9f39050 + ecc608e commit eab803f

4 files changed

Lines changed: 13 additions & 6 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "paynl/php-sdk",
33
"description": "Pay. API client library for PHP. Pay. is an all-in-one European PSP offering 50+ payment methods both online and instore.",
4-
"version": "1.1.2",
4+
"version": "1.1.3",
55
"type": "library",
66
"require": {
77
"php": "^8.1",

samples/TransactionStatus.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,12 @@
5050
echo 'integration: ' . ($payOrder->getIntegration()['testMode'] === true ? '1' : 0) . PHP_EOL;
5151
echo 'expiresAt: ' . $payOrder->getExpiresAt() . PHP_EOL;
5252
echo 'createdAt: ' . $payOrder->getCreatedAt() . PHP_EOL;
53+
54+
print_r($payOrder->getStats());
55+
echo 'extra1: ' . $payOrder->getExtra1() . PHP_EOL;
56+
echo 'extra2: ' . $payOrder->getExtra2() . PHP_EOL;
57+
echo 'extra3: ' . $payOrder->getExtra3() . PHP_EOL;
58+
echo 'getTool: ' . $payOrder->getTool() . PHP_EOL;
59+
echo 'getInfo: ' . $payOrder->getInfo() . PHP_EOL;
60+
echo 'getObject: ' . $payOrder->getObject() . PHP_EOL;
61+
echo 'getDomainId: ' . $payOrder->getDomainId() . PHP_EOL;

src/Model/Request/TransactionStatusRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class TransactionStatusRequest extends RequestData
3030
public function __construct(string $orderId)
3131
{
3232
$this->orderId = $orderId;
33-
parent::__construct('TransactionStatus', '/transactions/%transactionId%/status', RequestInterface::METHOD_GET);
33+
parent::__construct('TransactionStatus', '/transactions/%transactionId%', RequestInterface::METHOD_GET);
3434
}
3535

3636
/**

src/Request/ConfigProvider.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,11 +234,9 @@ protected function getTransactionServicesConfig(): array
234234
],
235235
],
236236
'TransactionStatus' => [
237-
'uri' => '/transactions/%transactionId%/status',
237+
'uri' => '',
238238
'method' => RequestInterface::METHOD_GET,
239-
'requiredParams' => [
240-
'transactionId' => '',
241-
],
239+
'requiredParams' => ['transactionId' => ''],
242240
],
243241
'OrderStatus' => [
244242
'uri' => '/transactions/%transactionId%/status',

0 commit comments

Comments
 (0)