Skip to content

Commit 0c2bcd4

Browse files
authored
Merge pull request #2 from NETipar/main
Fix Download invoice
2 parents fc66179 + ba20e62 commit 0c2bcd4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/BillingoApiV3Wrapper.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,11 @@ public function deletePayment(int $id): self
125125
public function downloadInvoice(int $id, string $path = null, string $extension = null): self
126126
{
127127
$filename = $id . ($extension ?? $this->extension);
128+
$this->createResponse('download', [$id], true);
128129

129130
Storage::put(
130131
($path ?? $this->downloadPath) . $filename,
131-
$this->createResponse('download', [$id], true, true)
132+
$this->response[0]
132133
);
133134

134135
$this->response = ['path' => ($path ?? $this->downloadPath) . $filename];

0 commit comments

Comments
 (0)