Skip to content

Commit

Permalink
Merge pull request #11 from zsoro2/patch-1
Browse files Browse the repository at this point in the history
Get code data from response array fix
  • Loading branch information
Otisz authored Jun 12, 2020
2 parents 4afb980 + 1571576 commit 9849425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/Invoices.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function accessCode($invoiceId, bool $asURL = false)
$response = Billingo::get("invoices/{$invoiceId}/code");

if ($asURL) {
return "https://www.billingo.hu/access/c:{$response['code']}";
return "https://www.billingo.hu/access/c:{$response['data']['code']}";
}

return $response;
Expand Down

0 comments on commit 9849425

Please sign in to comment.