Skip to content

Commit

Permalink
Get code data from response array fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zsoro2 authored Jun 10, 2020
1 parent 4afb980 commit 1571576
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 1571576

Please sign in to comment.