From 35c7da16878cf4e081d2d6e4be0d2cd3393d4d49 Mon Sep 17 00:00:00 2001 From: Kessir Adjaho Date: Mon, 30 Nov 2020 15:31:59 +0100 Subject: [PATCH] getAuthorizationUrl() to accept a data parameter Allow getAuthorizationUrl() method to accept a data parameter for situations where you don't want to use data from the request. --- src/Paystack.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Paystack.php b/src/Paystack.php index 450ec3d..e4e979e 100644 --- a/src/Paystack.php +++ b/src/Paystack.php @@ -181,9 +181,9 @@ private function setHttpResponse($relativeUrl, $method, $body = []) * Get the authorization url from the callback response * @return Paystack */ - public function getAuthorizationUrl() + public function getAuthorizationUrl($data = null) { - $this->makePaymentRequest(); + $this->makePaymentRequest($data); $this->url = $this->getResponse()['data']['authorization_url'];