From 02ad6d2ffaf693af78b335e36cdaa2c134bb75a1 Mon Sep 17 00:00:00 2001 From: dantheman Date: Tue, 13 May 2025 22:17:44 +0100 Subject: [PATCH] Add getTotalTransactions method to retrieve total amount received --- src/Paystack.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Paystack.php b/src/Paystack.php index f4b91dc..5f47032 100644 --- a/src/Paystack.php +++ b/src/Paystack.php @@ -340,6 +340,18 @@ public function getAllTransactions() return $this->setHttpResponse("/transaction", 'GET', [])->getData(); } + + /** + * Transaction Totals + * Total amount received on your account + */ + public function getTotalTransactions() + { + $this->setRequestOptions(); + + return $this->setHttpResponse("/transaction/totals", 'GET', [])->getResponse(); + } + /** * Get the whole response from a get operation * @return array