From e94b2278e2b11f5b743e200c361edd9ac86f3ff6 Mon Sep 17 00:00:00 2001 From: wisdomanthoni Date: Fri, 2 Aug 2019 02:01:26 +0100 Subject: [PATCH 1/2] paystack request can be made by setting request data from server side --- src/Paystack.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Paystack.php b/src/Paystack.php index b09b571..505edaa 100644 --- a/src/Paystack.php +++ b/src/Paystack.php @@ -61,6 +61,16 @@ public function __construct() $this->paystack = app()->make('paystack.connection'); } + /** + * Set request data for making a Paystack request + */ + public function setRequestData($data = []) + { + request()->add($data); + + return $this; + } + /** * Initiate a payment request to Paystack * Included the option to pass the payload to this method for situations From 512b1e3b796e8c741824d9103203ec5867fd3114 Mon Sep 17 00:00:00 2001 From: wisdomanthoni Date: Fri, 2 Aug 2019 02:10:18 +0100 Subject: [PATCH 2/2] u --- src/Paystack.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Paystack.php b/src/Paystack.php index 505edaa..3e77815 100644 --- a/src/Paystack.php +++ b/src/Paystack.php @@ -120,6 +120,7 @@ public function makePaymentRequest($data = null) * Get the authorization url from the callback response. * * @param null $data + * * @return Paystack */ public function getAuthorizationUrl($data = null)