New major release containing improved performance and security updates.
Major changes:
- Minimum required PHP version increased to 8.2+
- Fully supported Composer-based autoloading
- PSR-4 compliant file structure
- Library is now properly namespaced under
Barion\
- Enumerations are using native enums in separate files
- API calls now support header-based POSKey authentication
- Allowed funding sources now include Apple Pay and Google Pay
- PaymentState request is now implemented at API version 4
- Added Spanish locale to the supported Barion Smart Gateway languages
- Updated examples and docs
- Added PHPDoc annotation
- Client throws exception if PHP version is not sufficient or cURL extension is not available
- Client throws exception if an incorrect API version is specified for a method
- API version can now be set on-the-fly between calls
Using the new version from scratch:
Please refer to the readme.md file for instructions on how to get started with the Barion Web PHP library.
Upgrading from v1:
You should check your system parameters to make sure you are running the supported versions from all required components. The majority of existing codebase will remain usable with minimal additional coding. If you need any help with upgrading to the new version, join our Discord server for assistance.
Legacy support:
Webshop integrations running below PHP version 8.2 should use the old library version (which is currently 1.4.11). The old version will be supported until the end of Q2 2025 with basic security patches. Please upgrade your system to an adequate level to be able to use v2.0.0 as soon as possible.