Releases: contributte/thepay
v5.0.0
What's Changed
Breaking Changes
- 💥 Require PHP 8.2+ — dropped support for PHP 7.x and 8.0/8.1
- 💥 Replaced
contributte/thepay-apiwith officialthepay/api-clientv2 (#103) — the underlying API client library has been completely swapped to the official ThePay SDK
Features
- Native PHP 8.2 type hints in configuration classes (#103)
- Aligned with Contributte standard project structure and tooling
Build & Infrastructure
- CI: replaced workflows with Contributte standard
- Tests: migrated to
Toolkit::test(), renamed cases toCases, cleaned up bootstrap - Config: aligned with Contributte standard PHP 8.2 base
Dependencies
thepay/api-client^2.0.0 → ^2.2.1 (#103, #106)nette/di^3.2.0 → ^3.2.5 (#107)nette/schema^1.3.0 → ^1.3.5 (#108)contributte/phpstan~0.2.0 → ~0.3.1 (#105)contributte/tester~0.3.0 → ~0.4.1 (#104)
Migration from v4.x
- Upgrade PHP to 8.2+
- Replace
contributte/thepay-apiwiththepay/api-client(handled automatically via composer) - Update your neon config — the extension name and options remain the same (
Contributte\ThePay\DI\ThePayExtension) - API usage (
TheClient::createPayment(),getPayment(),getPaymentButtons(), etc.) remains compatible — see documentation
v4.1.1
v4.1.0
v4.0.2
First release with contributte/thepay-api instead of abandoned trejjam/thepay-lib.
v4.0.1
v4.0.1 RC0
This release adds support for Helper\Card::getCardInfo from the original library
v4.0.0-rc2
v4.0.0 RC1
This release use patched core library.
Core library was migrated to PHP 7.1 with forced types and it is no longer only namespaced official library. It could be BC break. But changes in official library will be ported into that core library.
Core library was also migrated from DateTime to DateTimeImmutable, it is also BC break.
Library returns (and requires):
TRUE/FALSEfrom bool property which in previous version returns'1'/'0'.floatnumber instead of(string)number_format($number, 2, '.', '')intnumber instead of(string)$numberDateTimeImmutableinstead ofDateTime
v4.0.0 RC0
This release use patched core library.
Core library was migrated to PHP 7.1 with forced types and it is no longer only namespaced official library. It could be BC break. But changes in official library will be ported into that core library.
Library return:
TRUE/FALSEfrom bool property which in previous version returns'1'/'0'.floatnumber instead of(string)number_format($number, 2, '.', '')intnumber instead of(string)$number