Skip to content

Commit

Permalink
Merge pull request #1 from ChristianVermeulen/patch-1
Browse files Browse the repository at this point in the history
Fix Typo in PaymentMeans serialization
  • Loading branch information
CrixuAMG authored May 31, 2021
2 parents 88d40e6 + 3ca131c commit 768516a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PaymentMeans.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ public function setPayeeFinancialAccount($payeeFinancialAccount)
function xmlSerialize(Writer $writer)
{
$writer->write([
Schema::CBC . 'PaymmentMeansCode' => $this->code,
Schema::CBC . 'PaymentMeansCode' => $this->code,
]);

if (!empty($this->dueDate)) {
$writer->write([
Schema::CBC . 'PaymmentMeansDueDate' => $this->dueDate->format('Y-m-d'),
Schema::CBC . 'PaymentDueDate' => $this->dueDate->format('Y-m-d'),
]);
}

Expand Down

0 comments on commit 768516a

Please sign in to comment.