Skip to content

Commit a1c4d3b

Browse files
author
Alexey Babak
committed
php8.1 support
1 parent 56e98cb commit a1c4d3b

File tree

4 files changed

+18
-5
lines changed

4 files changed

+18
-5
lines changed

example.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,4 +316,3 @@ class="btn btn-success"
316316
}
317317

318318
include 'example_template.html';
319-

src/Capture.php

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,20 @@ public function getCurrency(): string
9191
return $this->currency;
9292
}
9393

94+
/** @inheritDoc */
95+
public function setDebugMode(bool $isOn): CaptureInterface
96+
{
97+
// TODO: Implement setDebugMode() method.
98+
return $this;
99+
}
100+
101+
/** @inheritDoc */
102+
public function setSandboxMode(bool $isOn): CaptureInterface
103+
{
104+
// TODO: Implement setSandboxMode() method.
105+
return $this;
106+
}
107+
94108
/** @inheritDoc */
95109
public function jsonSerialize()
96110
{
@@ -104,4 +118,4 @@ public function jsonSerialize()
104118

105119
return json_encode($requestData, JSON_UNESCAPED_SLASHES|JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_LINE_TERMINATORS);
106120
}
107-
}
121+
}

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Client implements ClientInterface
88
private BillingInterface $billing;
99

1010
/** @var ?string Клиенский IP */
11-
private ?string $clientIp;
11+
private ?string $clientIp = null;
1212

1313
/** @var string Время оплаты */
1414
private string $clientTime;

src/Std.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ public static function drawPayuButton(array $params): string
100100
/>
101101
Оплатить
102102
'.(isset($params['sum']) ? '<br><strong>'
103-
. number_format((int)$params['sum'], 0, '.', ' ')
103+
. number_format($params['sum'], 0, '.', ' ')
104104
. ' '
105105
. ( isset($params['currency']) ? htmlspecialchars($params['currency']) : '' ) .'</strong>' : '').'
106106
</a>
107107
';
108108
}
109-
}
109+
}

0 commit comments

Comments
 (0)