Skip to content

Commit

Permalink
Merge pull request #715 from YouneselBarnoussi/master
Browse files Browse the repository at this point in the history
fix: add preset options when updating payment
  • Loading branch information
Naoray authored May 7, 2024
2 parents c937708 + e48ed28 commit 27ce8de
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Resources/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,10 @@ public function update()
"dueDate" => $this->dueDate,
];

$result = $this->client->payments->update($this->id, $body);
$result = $this->client->payments->update(
$this->id,
$this->withPresetOptions($body)
);

return ResourceFactory::createFromApiResult($result, new Payment($this->client));
}
Expand Down

0 comments on commit 27ce8de

Please sign in to comment.