From f072f32e3fa2051afd060f702cc24609d0c960e0 Mon Sep 17 00:00:00 2001 From: Steve Yout <34503856+steveyout@users.noreply.github.com> Date: Wed, 10 Apr 2024 17:50:23 +0300 Subject: [PATCH] Update MpesaHelper.php --- src/Utils/MpesaHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Utils/MpesaHelper.php b/src/Utils/MpesaHelper.php index 057012f..05d7706 100644 --- a/src/Utils/MpesaHelper.php +++ b/src/Utils/MpesaHelper.php @@ -47,7 +47,7 @@ public function MpesaRequest($url, $body) ->acceptJson() ->post($url, $body); - return $response; + return $response->json(); } // Generate a base64 password using the Safaricom PassKey and the Business ShortCode to be used in the Mpesa Transaction