diff --git a/src/Paystack.php b/src/Paystack.php index b09b571..3e77815 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 @@ -110,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)