All notable changes to this project will be documented in this file. See commit-and-tag-version for commit guidelines.
5.2.8 (2025-01-04)
- input formatter on currencies with zero decimals (1b2f510)
5.2.7 (2024-11-30)
5.2.6 (2024-10-23)
5.2.5 (2024-06-29)
- apply decodeURIComponent only to redirect notifications (3a1f991)
- deserialize: decode merchant parameters one by one, allowing for decode failures in case a paremeter value is not encoded (e28e99a)
5.2.4 (2024-04-07)
5.2.3 (2024-02-17)
5.2.2 (2024-01-07)
5.2.1 (2023-12-05)
5.2.0 (2023-08-06)
- stricter types (6c407aa)
5.1.0 (2023-08-04)
- stricter types (3d8aa69)
5.0.0 (2023-08-04)
- export types and refactor response assertion utils
- export types and refactor response assertion utils (855a3aa)
- replace Math.random with crypto.randomInt (f3b1b0b)
- replace node-fetch with undici (fe5abe1)
5.0.0 (2023-08-04)
- export types and refactor response assertion utils
- export types and refactor response assertion utils (855a3aa)
- replace Math.random with crypto.randomInt (f3b1b0b)
- replace node-fetch with undici (fe5abe1)
4.0.3 (2023-08-04)
4.0.2 (2022-05-14)
4.0.1 (2021-10-22)
4.0.0 (2021-07-17)
- The formatter has changed the expect input to be formatted.
- errors and output formatter
- formatter: The formatter has a different ouput format for the amount
- removal of expiryDate in formatted output, formatted param "hour" renamed to "time".
- error messages
- add lint script (da6b8e5)
- allow to specify an amountType (4cf3eb8)
- configure renovatebot (b27b948)
- doc: explain smallest currency unit (f6f6611)
- doc: remove currencies and raw section (2ae6bc8)
- error classes (b2f6f99)
- improve manual redirection test (9f2ba96)
- introduce new parameters (10b060a)
- limit lenght of 3des encrypted text (7a1c7af)
- make git include pnpm files (b6df32a)
- more reliable response formatting (d76773b)
- no default currency (23c3bef)
- raw input parameters (d3d726d)
- release version 3 (9f07c20)
- replace CVV2 with cvv (8404cc0)
- rest api (dd389f9)
- tests for types (a45d76f)
- typescript, rollup and tests (a3f97ec)
- update error codes (003e6f6)
- use pnpm and simple-git-hooks (79d6fdf)
-
currency code format (531ca39)
-
currency table (420a8c0)
-
declare tslib as dependency (455830e)
-
escape forward slash in petition params json (91109fe)
-
formatter: conditional price and response (2fddc60)
-
web-service test (4d0ff09)
-
break public interface into composable pieces (3a5efba)
-
errors and output formatter (787dcca)
-
formatters (98927d4)
-
functional programming principles (c5c4ea9)
- typescript, rollup and tests (a3f97ec)
- Generate CommonJS and ESM output
- tests for types (a45d76f)
- Fill 3D Secure form in redirection test
- Length of encrypted 3des message is now limited
- Removed internal parameters in the form of paramInt. User the new raw property instead.
- securePayment returns a boolean
- Parameter dateFrecuency renamed to dateFrequency
- Parameter CVV2 renamed to cvv
- A new parameter raw can be used to pass an object with redsys parameters that should not be formatted
- Updated currencies and error codes
- Add new formatted parameters, some related to paygold
- New transaction type PAYLINK
- Examples
- Monetary amounts are integers of smallest currency unit
- Some parameters are split into two: param and paramInt. param uses an ISO format while paramInt uses the internal redsys format. For inputs, paramInt has priority.
- Notification and web service response parameters are formatted
- Random transaction ID generator