Skip to content

v5.0.0

Latest

Choose a tag to compare

@trejjam trejjam released this 27 Mar 15:21
· 1 commit to master since this release
8c2b96f

What's Changed

Breaking Changes

  • πŸ’₯ Require PHP 8.2+ β€” dropped support for PHP 7.x and 8.0/8.1
  • πŸ’₯ Replaced contributte/thepay-api with official thepay/api-client v2 (#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 to Cases, 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

  1. Upgrade PHP to 8.2+
  2. Replace contributte/thepay-api with thepay/api-client (handled automatically via composer)
  3. Update your neon config β€” the extension name and options remain the same (Contributte\ThePay\DI\ThePayExtension)
  4. API usage (TheClient::createPayment(), getPayment(), getPaymentButtons(), etc.) remains compatible β€” see documentation