Skip to content

Commit 6760ae9

Browse files
committed
I have been addeding a new method to generates a Redsys order number following the recommended format.
1 parent 950c7cc commit 6760ae9

File tree

3 files changed

+216
-8
lines changed

3 files changed

+216
-8
lines changed

CHANGELOG.md

+103-8
Original file line numberDiff line numberDiff line change
@@ -2,286 +2,381 @@
22

33
All Notable changes to `Redsys` will be documented in this file
44

5+
## Version 1.5.2 (2025-03-07)
6+
7+
### Added
8+
9+
- Added a new method to create an order number (createOrderNumber) to generates a Redsys order number following the recommended format.
10+
11+
### Changed
12+
13+
- None
14+
15+
### Fixed
16+
17+
- None
18+
519
## Version 1.5.1 (2025-01-23)
20+
621
### Added
22+
723
- Added a new test to handle successful or error responses from the Redsys payment gateway.
824
- Updated README with additional information about errorCode verification and the usage of the MIT parameter.
925

1026
### Changed
27+
1128
- None
1229

1330
### Fixed
31+
1432
- None
1533

1634
## Version 1.5.0 (2025-01-16)
35+
1736
### Added
37+
1838
- None
1939

2040
### Changed
41+
2142
- Updated isEmpty method to properly handle non-string values
2243

2344
### Fixed
45+
2446
- Fixed deprecated warning in isEmpty method when passing null values to trim().
2547
- Fixed incorrect validation of boolean values in isEmpty method
2648

2749
## Version 1.4.9 (2025-01-11)
50+
2851
### Added
52+
2953
- None
3054

3155
### Changed
56+
3257
- None
3358

3459
### Fixed
35-
- I have just fixed an error in the setMerchantCofIni method. It always returns the value 'S'.
3660

61+
- I have just fixed an error in the setMerchantCofIni method. It always returns the value 'S'.
3762

3863
## Version 1.4.8 (2024-03-05)
64+
3965
### Added
66+
4067
- Implementation of the `xpay` method within the `setMethod` functionality to support GooglePay and ApplePay.
4168

4269
- TDD (Test Driven Development) implementation for enhanced code reliability and maintainability.
4370

4471
### Changed
72+
4573
- Possible internal changes were made to integrate the `xpay` method and accommodate the TDD implementation, ensuring code consistency.
4674

4775
### Fixed
76+
4877
- None
4978

5079
## Version 1.4.7 (2024-02-24)
80+
5181
### Added
82+
5283
- Static validation methods for convenience and reusability.
5384

5485
- Tests for the new methods and functionalities, ensuring code quality and stability.
5586

5687
### Changed
88+
5789
- Possible internal changes were made to implement the new features.
90+
5891
### Fixed
92+
5993
- None
6094

6195
## Version 1.4.6 (2023-10-28)
6296

6397
### Added
98+
6499
- Test for method getPathJs
65100

66101
- 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.
67102

68103
### Changed
104+
69105
- None
106+
70107
### Fixed
108+
71109
- None
72110

73111
## Version 1.4.5 (2023-09-26)
74112

75113
### Added
114+
76115
- Tag 1.4.5
77116

78117
### Changed
118+
79119
- Method `check` updated in `Tpv.php` to enhance security and improve validation of signatures. The change involved replacing strict comparison (`===`) with `hash_equals()` for signature validation.
80120

81121
### Fixed
122+
82123
- None
83124

84125
## Version 1.4.4 (2023-08-07)
85126

86127
### Added
128+
87129
- Merge pull request from diegomarty.
88130
- Changed value by default in setMethod: T to C.
89131
- Added validation for this parameters: 'T', 'C', 'R', 'D', 'z', 'p', 'N'
90132
- Added new test for setMethod
133+
91134
### Fixed
135+
92136
- Nothing
93137

94138
## Version 1.4.3 (2023-02-16)
95139

96140
### Added
141+
97142
- Testing with PHP 8.2.
98143
- Added new method getJsPath for inSite.
144+
99145
### Fixed
146+
100147
- Nothing
101148

102149
## Version 1.4.2 (2022-11-10)
103150

104151
### Added
152+
105153
- New environment iniciaPeticionREST to Rest Api.
154+
106155
### Fixed
156+
107157
- Nothing
108158

109159
## Version 1.4.1 (2022-03-07)
110160

111161
### Added
162+
112163
- Nothing
164+
113165
### Fixed
114-
- Updated README, example rest.
115166

167+
- Updated README, example rest.
116168

117169
## Version 1.4.0 (2022-02-22)
118170

119171
### Added
172+
120173
- Added new method: send using rest.
174+
121175
### Fixed
176+
122177
- setOrder, Allows you to add numbers and letters in the first 4.
123178

124179
## Version 1.3.0 (2020-12-05)
125180

126181
### Added
182+
127183
- Added new method: setParameters
128184

129185
### Deprecated
186+
130187
- Nothing
131188

132189
### Fixed
190+
133191
- Nothing
134192

135193
## Version 1.2.9 (2019-05-18)
136194

137195
### Added
196+
138197
- Added new methods for recurring payment:
139-
- setSumtotal
140-
- setChargeExpiryDate
141-
- setDateFrecuency
198+
- setSumtotal
199+
- setChargeExpiryDate
200+
- setDateFrecuency
142201

143202
### Deprecated
203+
144204
- Nothing
145205

146206
### Fixed
207+
147208
- Nothing
148209

149210
## Version 1.2.8 (2018-10-11)
150211

151212
### Added
213+
152214
- Added travis_ci
153215

154216
### Deprecated
217+
155218
- Nothing
156219

157220
### Fixed
221+
158222
- Fixed errors when uses php5.6 (travis_ci)
159223

160224
## Version 1.2.7 (2018-09-03)
161225

162226
### Added
227+
163228
- Added test.
164229
- Added method getNameForm.
165230

166231
### Deprecated
232+
167233
- Nothing
168234

169235
### Fixed
236+
170237
- Changed property and methods private to protected
171238

172239
## Version 1.2.6 (2018-08-02)
173240

174241
### Added
242+
175243
- Add support to chain methods
176244

177245
### Deprecated
246+
178247
- Nothing
179248

180249
### Fixed
250+
181251
- Nothing
182252

183253
## Version 1.2.5 (2018-04-04)
184254

185255
### Added
256+
186257
- Nothing
187258

188259
### Deprecated
260+
189261
- Nothing
190262

191263
### Fixed
264+
192265
- Changed validation for setCurrency, not limit to 978, 840, 826, 392
193266

194267
## Version 1.2.4.1 (2018-03-22)
195268

196269
### Added
270+
197271
- Nothing
198272

199273
### Deprecated
274+
200275
- Nothing
201276

202277
### Fixed
278+
203279
- Changed information text about of parameter by default for setMethod.
204280

205281
## Version 1.2.4 (2017-12-11)
206282

207283
### Added
284+
208285
- Merge pull request (Minor cosmetic fixes).
209286
- Added setEnvironment.
210287

211288
### Deprecated
289+
212290
- Method setEnviroment.
213291

214292
### Fixed
293+
215294
- Nothing
216295

217296
## Version 1.2.3 (2017-11-23)
218297

219298
### Added
299+
220300
- Throwing custom exceptions TpvException
221301

222302
### Deprecated
303+
223304
- Nothing
224305

225306
### Fixed
226-
- Nothing
227307

308+
- Nothing
228309

229310
## Version 1.2.2 (2017-06-14)
230311

231312
### Added
313+
232314
- Method setPan, Set card number.
233315
- Method setExpiryDate, Set expiry date of card number.
234316
- Method setCVV2, Set CVV2 of card number.
235317

236318
### Deprecated
319+
237320
- Nothing
238321

239322
### Fixed
240-
- Nothing
241323

324+
- Nothing
242325

243326
## Version 1.2.1 (2017-05-20)
244327

245328
### Added
329+
246330
- Nothing
247331

248332
### Deprecated
333+
249334
- Nothing
250335

251336
### Fixed
337+
252338
- The method setOrder, now verified that the first 4 digits must be numeric and maximum 12 characters.
253339

254340
## Version 1.2 (2017-01-27)
255341

256342
### Added
343+
257344
- Nothing
258345

259346
### Deprecated
347+
260348
- Nothing
261349

262350
### Fixed
351+
263352
- Changed the function mcrypt_encrypt to openssl_encrypt, with the new updated of PHP 7.1 the function mcrypt_encrypt is deprecated.
264353

265354
## Version 1.1.6 (2016-10-19)
266355

267356
### Added
357+
268358
- 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.
269359
- 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.
270360

271361
### Deprecated
362+
272363
- Nothing
273364

274365
### Fixed
366+
275367
- setAmount, Now amount maybe 0, it is for uses setIdentifier.
276368

277369
## Version 1.1.5 (2016-06-17)
278370

279371
### Added
372+
280373
- Method getVersion, return version example: HMAC_SHA256_V1
281374
- Method getMerchantSignature, return merchant signature example: Cia90trhTPGxtJDmK6WDhqXzU+98LbuKZKAKYHMjtMs=
282375

283376
### Deprecated
377+
284378
- Nothing
285379

286380
### Fixed
287-
- Nothing
381+
382+
- Nothing

0 commit comments

Comments
 (0)