From 879b58507e975cd3eb27b9f4a71e2ec22ab1cd79 Mon Sep 17 00:00:00 2001 From: Fredrick Ochieng Date: Fri, 14 Jun 2024 16:10:03 +0300 Subject: [PATCH] feat: Update getPaymentData method to accept a reference parameter --- src/Paystack.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Paystack.php b/src/Paystack.php index f4b91dc..c37fac9 100644 --- a/src/Paystack.php +++ b/src/Paystack.php @@ -272,9 +272,9 @@ public function isTransactionVerificationValid($transaction_id = null) * @return json * @throws PaymentVerificationFailedException */ - public function getPaymentData() + public function getPaymentData($reference) { - if ($this->isTransactionVerificationValid()) { + if ($this->isTransactionVerificationValid($reference)) { return $this->getResponse(); } else { throw new PaymentVerificationFailedException("Invalid Transaction Reference");