# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

------------------------------
## [2.2.9] - 2026-02-12
- Introduced support for Webhook v2
- Optimize the "add Gateway To Checkout" function
- Limited embedded Apple Pay / Google Pay to a single gateway
- Add STC to be displayed in the card section (redirection)
- Apply the regex expression for the customer name, invoice item names, item product names, and item product description
- Fix displaying of Arabic letters in the log 

------------------------------
## [2.2.8] - 2024-09-06
### Changed
- Fix the display of the checkout price.

------------------------------
## [2.2.7] - 2024-03-31
### Changed
- Fix the display of the checkout price.
- Trim the config JSON file to remove any hidden chars.

------------------------------
## [2.2.6] - 2024-02-11
### Added
- Add the getPaymentStatusLink static function
- Add the getOneCurrencyRate static function
- Add the getTranslatedCurrency static function to translate the currency

### Changed
- Change the config array to accept the vcCode and countryCode

------------------------------
## [2.2.5] - 2023-12-05
### Changed
- Some changes to the library to be compatible with other API rather than plugins

------------------------------
## [2.2.4] - 2023-06-26
### Changed
- Add google pay gateway

------------------------------
## [2.2.3] - 2023-05-24
### Changed
- Fix display price value in calc Gateway Data

------------------------------
## [2.2.2] - 2023-05-02
### Changed
- Add makeRefund API function
- Add more test files
- Fix autoload file

------------------------------
## [2.1.3] - 2023-05-24
### Changed
- Fix display price value in calc Gateway Data
- Modify refund
------------------------------
## [2.1.2] - 2023-05-02
### Changed
- Add notification options as param in send payment function
- Modify refund
- Fix apple pay striptags

------------------------------
## [2.2.1] - 2023-03-30
### Changed
- Add notification options as param in send payment function
- Modify refund
- Fix apple pay striptags

------------------------------
## [2.2.0] - 2023-01-04
### Changed
- Restructure the library files

------------------------------
## [2.1.0] - 2023-01-04
### Changed
Fix many requests in the MyFatoorah autoloader

------------------------------
## [2.1.0] - 2022-09-18
### Added
- Added Apple Pay Embedded Button

### Changed
- Optimization in some functions
- Fix compatibility with PHP 8.1

------------------------------
## [2.0.0] - 2022-07-04
The first version of the library

------------------------------
[2.2.9]: https://dev.azure.com/myfatoorahsc/Public-Repo/_git/Library?version=GT2.2.9
[2.2.8]: https://dev.azure.com/myfatoorahsc/Public-Repo/_git/Library?version=GT2.2.8
[2.2.7]: https://dev.azure.com/myfatoorahsc/Public-Repo/_git/Library?version=GT2.2.7
[2.2.6]: https://dev.azure.com/myfatoorahsc/Public-Repo/_git/Library?version=GT2.2.6
[2.2.5]: https://dev.azure.com/myfatoorahsc/Public-Repo/_git/Library?version=GT2.2.5
[2.2.4]: https://dev.azure.com/myfatoorahsc/Public-Repo/_git/Library?version=GT2.2.4
[2.2.3]: https://dev.azure.com/myfatoorahsc/Public-Repo/_git/Library?version=GT2.2.3
[2.2.2]: https://dev.azure.com/myfatoorahsc/Public-Repo/_git/Library?version=GT2.2.2
[2.2.1]: https://dev.azure.com/myfatoorahsc/Public-Repo/_git/Library?version=GT2.2.1
[2.2.0]: https://dev.azure.com/myfatoorahsc/Public-Repo/_git/Library?version=GT2.2.0
[2.1.3]: https://dev.azure.com/myfatoorahsc/Public-Repo/_git/Library?version=GT2.1.3
[2.1.2]: https://dev.azure.com/myfatoorahsc/Public-Repo/_git/Library?version=GT2.1.2
[2.1.1]: https://dev.azure.com/myfatoorahsc/Public-Repo/_git/Library?version=GT2.1.1
[2.1.0]: https://dev.azure.com/myfatoorahsc/Public-Repo/_git/Library?version=GT2.1.0
[2.0.0]: https://dev.azure.com/myfatoorahsc/Public-Repo/_git/Library?version=GT2.0.0
