Releases: barion/barion-web-php
New major release: v2.0.0
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.
Updating bundled CA certificates
v1.4.11 Updating cacert.pem
Fixed PaymentId parsing in API error models
What's Changed
- index check on PaymentId in error model by @barion-vinczei in #26
Small fixes
FIX:// fix for the ErrorCode field in ApiErrorModel class
Small fixes
- The JSON data is arriving as array.
- Merging the API error model changesets
Error response extended
- Added missing properties to API error model
- Added PaymentId to API error model
CompletePayment response fix
CompletePayment response PaymentState field fixed
Additional properties in the GetPaymentState response
v1.4.5 ADD:// Missing PaymentState response fields
RecurrenceType fix
RecurrenceType is fixed in GetPaymentState response
Token payment with 3DSv2
3DS v2 token payment information added to the models