Skip to content

Commit 2de895f

Browse files
simonwestynSimon
andauthored
Change switchover time (#20)
Co-authored-by: Simon <simon@optios.net>
1 parent 7768372 commit 2de895f

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ composer require optiosteam/payconiq-client-php
3333
```
3434

3535
## Migrating from 1.x to 2.x: Migration Payconiq > WERO/Bancontact
36-
On `2025-09-21 03:00:00 CET` the endpoints will be updated automatically to use the new endpoints according to https://docs.payconiq.be/guides/general/preprod072025v4
36+
On `2025-09-21 05:50:00 CET` the endpoints will be updated automatically to use the new endpoints according to https://docs.payconiq.be/guides/general/preprod072025v4
3737

3838
The code has been updated for PHP 8 (constructor property promotion, enums, immutable with `readonly`, ...)
3939

src/MigrationHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class MigrationHelper
1414
* > Any update before or after this deadline will result in your integration stopping.
1515
*/
1616

17-
public const SWITCH_DATETIME = '2025-09-21 03:00:00'; // switch to new endpoints at 3AM CET (1 hour buffer)
17+
public const SWITCH_DATETIME = '2025-09-21 05:50:00';
1818
public const TIMEZONE = 'Europe/Brussels'; // CET
1919

2020
public static function switchToNewEndpoints(): bool

tests/MigrationHelperTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ public static function provideSwitchCases(): iterable
2828
{
2929
// SWITCH_DATETIME = '2025-09-21 03:00:00' in Europe/Brussels
3030
yield 'day before' => ['2025-09-20 12:00:00', false];
31-
yield 'one second before' => ['2025-09-21 02:59:59', false];
32-
yield 'exact switch time' => ['2025-09-21 03:00:00', true];
33-
yield 'one second after' => ['2025-09-21 03:00:01', true];
31+
yield 'one second before' => ['2025-09-21 05:49:59', false];
32+
yield 'exact switch time' => ['2025-09-21 05:50:00', true];
33+
yield 'one second after' => ['2025-09-21 05:50:01', true];
3434
yield 'day after' => ['2025-09-22 12:00:00', true];
35-
yield 'month after' => ['2025-10-21 03:00:00', true];
35+
yield 'month after' => ['2025-10-21 05:50:00', true];
3636
}
3737
}

0 commit comments

Comments
 (0)