All Notable changes to Redsys
will be documented in this file
-
Implementation of the
xpay
method within thesetMethod
functionality to support GooglePay and ApplePay. -
TDD (Test Driven Development) implementation for enhanced code reliability and maintainability.
- Possible internal changes were made to integrate the
xpay
method and accommodate the TDD implementation, ensuring code consistency.
- None
-
Static validation methods for convenience and reusability.
-
Tests for the new methods and functionalities, ensuring code quality and stability.
- Possible internal changes were made to implement the new features.
- None
-
Test for method getPathJs
-
I just added a second optional parameter, $version, was added to the getJsPath() method to allow users to specify the version of the Redsys JavaScript file they want to use. The default version is 2 for compatibility reasons, but users can specify 3 to get the latest Redsys JavaScript file.
- None
- None
- Tag 1.4.5
- Method
check
updated inTpv.php
to enhance security and improve validation of signatures. The change involved replacing strict comparison (===
) withhash_equals()
for signature validation.
- None
- Merge pull request from diegomarty.
- Changed value by default in setMethod: T to C.
- Added validation for this parameters: 'T', 'C', 'R', 'D', 'z', 'p', 'N'
- Added new test for setMethod
- Nothing
- Testing with PHP 8.2.
- Added new method getJsPath for inSite.
- Nothing
- New environment iniciaPeticionREST to Rest Api.
- Nothing
- Nothing
- Updated README, example rest.
- Added new method: send using rest.
- setOrder, Allows you to add numbers and letters in the first 4.
- Added new method: setParameters
- Nothing
- Nothing
- Added new methods for recurring payment:
- setSumtotal
- setChargeExpiryDate
- setDateFrecuency
- Nothing
- Nothing
- Added travis_ci
- Nothing
- Fixed errors when uses php5.6 (travis_ci)
- Added test.
- Added method getNameForm.
- Nothing
- Changed property and methods private to protected
- Add support to chain methods
- Nothing
- Nothing
- Nothing
- Nothing
- Changed validation for setCurrency, not limit to 978, 840, 826, 392
- Nothing
- Nothing
- Changed information text about of parameter by default for setMethod.
- Merge pull request (Minor cosmetic fixes).
- Added setEnvironment.
- Method setEnviroment.
- Nothing
- Throwing custom exceptions TpvException
- Nothing
- Nothing
- Method setPan, Set card number.
- Method setExpiryDate, Set expiry date of card number.
- Method setCVV2, Set CVV2 of card number.
- Nothing
- Nothing
- Nothing
- Nothing
- The method setOrder, now verified that the first 4 digits must be numeric and maximum 12 characters.
- Nothing
- Nothing
- Changed the function mcrypt_encrypt to openssl_encrypt, with the new updated of PHP 7.1 the function mcrypt_encrypt is deprecated.
- Method setIdentifier, This parameter is used to handle the associated reference data card. It is an alphanumeric field of up to 40 positions whose value is generated by the Virtual TPV.
- Method setMerchantDirectPayment, This parameter is optional, functions as a flag indicating whether to display additional screens (DCC, Fractionation and Authentication) default values are "true" or "false". If you used with the value "true", not additional screens (DCC, Fractionation and Authentication) are displayed during payment and should be used in conjunction with the parameter Ds_Merchant_Identifier containing a valid reference.
- Nothing
- setAmount, Now amount maybe 0, it is for uses setIdentifier.
- Method getVersion, return version example: HMAC_SHA256_V1
- Method getMerchantSignature, return merchant signature example: Cia90trhTPGxtJDmK6WDhqXzU+98LbuKZKAKYHMjtMs=
- Nothing
- Nothing