Skip to content

Commit

Permalink
removed due date from payment QR code
Browse files Browse the repository at this point in the history
  • Loading branch information
Lung committed Jul 11, 2024
1 parent d880e64 commit dccd022
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/Payment/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ public function getQrPaymentString(): string
'SPD*1.0*ACC:' . $this->iban . '*'
. 'AM:' . $this->price . '*'
. 'CC:' . $this->mapDbCurrencyToIban($this->currency) . '*'
. 'DT:' . $this->due->format('Ymd') . '*'
. 'MSG:' . StringUtils::stripDiacritic($this->note) . '*'
. ($this->constantSymbol === '' ? '' : ('X-KS:' . $this->constantSymbol . '*'))
. 'X-VS:' . $this->variableSymbol;
Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/Payment/PaymentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ public static function provideGetQrCode(): array
return [
'examplePayment with diacritic' => [
$examplePayment0,
'SPD*1.0*ACC:CZ5608000000000002171532*AM:999*CC:CZK*DT:20150518*MSG:Zprava escRZYAie*X-VS:1212'
'SPD*1.0*ACC:CZ5608000000000002171532*AM:999*CC:CZK*MSG:Zprava escRZYAie*X-VS:1212'
],
'examplePayment' => [
$examplePayment1,
'SPD*1.0*ACC:CZ2806000000000168540115*AM:450*CC:CZK*DT:20220521*MSG:PLATBA ZA ZBOZI*X-KS:0558*X-VS:1234567890'
'SPD*1.0*ACC:CZ2806000000000168540115*AM:450*CC:CZK*MSG:PLATBA ZA ZBOZI*X-KS:0558*X-VS:1234567890'
],
];
}
Expand Down

0 comments on commit dccd022

Please sign in to comment.