From 15715765323a2458356d4dc3361dce2f695cc1d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1z=C3=A1r=20Zsolt?= Date: Wed, 10 Jun 2020 16:35:54 +0200 Subject: [PATCH] Get code data from response array fix --- src/Services/Invoices.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Services/Invoices.php b/src/Services/Invoices.php index 6547521..bc02100 100644 --- a/src/Services/Invoices.php +++ b/src/Services/Invoices.php @@ -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;