From d4e2151be541168b61228d2371e4cc52e4a8bc6c Mon Sep 17 00:00:00 2001 From: Ekene Ezeasor Date: Tue, 7 May 2024 06:55:59 +0100 Subject: [PATCH] add: account details --- src/CredoPay.php | 2 ++ 1 file changed, 2 insertions(+) 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, ] ]); }