Skip to content

Commit ba20e62

Browse files
committed
Fix Download invoice
1 parent fc66179 commit ba20e62

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)