Skip to content

Commit 74faf94

Browse files
committed
fix: reference size in CancelRequest
closes: #38
1 parent cad7ab8 commit 74faf94

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Requests/CancelRequest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function validate(): bool
3636
throw Exception::invalidOrderDate();
3737
}
3838

39-
if (strlen($this->reference) > 12) {
39+
if (strlen($this->reference) > 50) {
4040
throw Exception::invalidReference($this->reference);
4141
}
4242

tests/CancelRequestTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function testRecoveryConstructExceptionInvalidReference()
7070
new CancelRequest([
7171
'dateTime' => Carbon::create(2019, 2, 1),
7272
'orderDate' => Carbon::create(2019, 1, 1),
73-
'reference' => 'thisisatoolongreference',
73+
'reference' => 'thisisatoolongreferencethisisatoolongreference11111',
7474
'language' => 'FR',
7575
'currency' => 'EUR',
7676
'amount' => 100,

0 commit comments

Comments
 (0)