From e48ed28d9dbc6951bc70cec2a2d7f684303bb2ee Mon Sep 17 00:00:00 2001 From: Younes el Barnoussi Date: Sun, 28 Apr 2024 15:28:22 +0200 Subject: [PATCH] fix: add preset options when updating payment --- src/Resources/Payment.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Resources/Payment.php b/src/Resources/Payment.php index e56861f1..83d8a523 100644 --- a/src/Resources/Payment.php +++ b/src/Resources/Payment.php @@ -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)); }