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'];