diff --git a/src/CredoPay.php b/src/CredoPay.php index 5ee40fd..02b8e92 100644 --- a/src/CredoPay.php +++ b/src/CredoPay.php @@ -47,6 +47,7 @@ public function initialize(array $data = []) 'authorizationUrl' => $responseArray['data']['authorizationUrl'], 'reference' => $responseArray['data']['reference'], 'credoReference' => $responseArray['data']['credoReference'], + 'account' => $responseArray['data']['account'] ?? null, ] ]; } else { @@ -57,6 +58,7 @@ public function initialize(array $data = []) 'authorizationUrl' => $responseObject->data->authorizationUrl, 'reference' => $responseObject->data->reference, 'credoReference' => $responseObject->data->credoReference, + 'account' => $responseObject->data->account ?? null, ] ]); }