@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | |
| 92 | 92 | /** |
| 93 | 93 | * Initiate a payment request to Paystack |
| 94 | - * @return Unicodeveloper\Paystack\Paystack |
|
| 94 | + * @return Paystack |
|
| 95 | 95 | */ |
| 96 | 96 | public function makePaymentRequest() |
| 97 | 97 | { |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | /** |
| 104 | 104 | * Make the client request and get the response |
| 105 | 105 | * @param string $relativeUrl |
| 106 | - * @return Unicodeveloper\Paystack\Paystack |
|
| 106 | + * @return Paystack |
|
| 107 | 107 | */ |
| 108 | 108 | public function setResponse($relativeUrl) |
| 109 | 109 | { |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | |
| 123 | 123 | /** |
| 124 | 124 | * Get the authorization url from the callback response |
| 125 | - * @return Unicodeveloper\Paystack\Paystack |
|
| 125 | + * @return Paystack |
|
| 126 | 126 | */ |
| 127 | 127 | public function getAuthorizationUrl() |
| 128 | 128 | { |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | */ |
| 77 | 77 | private function setRequestOptions() |
| 78 | 78 | { |
| 79 | - $authBearer = 'Bearer '. $this->secretKey; |
|
| 79 | + $authBearer = 'Bearer '.$this->secretKey; |
|
| 80 | 80 | |
| 81 | 81 | $this->client = new Client(['base_uri' => $this->baseUrl]); |
| 82 | 82 | |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | "email" => request()->email |
| 112 | 112 | ]; |
| 113 | 113 | |
| 114 | - $this->response = $this->client->post($this->baseUrl . $relativeUrl, [ |
|
| 114 | + $this->response = $this->client->post($this->baseUrl.$relativeUrl, [ |
|
| 115 | 115 | 'body' => json_encode($data) |
| 116 | 116 | ]); |
| 117 | 117 | |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | |
| 142 | 142 | $relativeUrl = "/transaction/verify/{$transactionRef}"; |
| 143 | 143 | |
| 144 | - $this->response = $this->client->get($this->baseUrl . $relativeUrl, []); |
|
| 144 | + $this->response = $this->client->get($this->baseUrl.$relativeUrl, []); |
|
| 145 | 145 | } |
| 146 | 146 | |
| 147 | 147 | /** |
@@ -20,9 +20,9 @@ |
||
| 20 | 20 | * @param string $type |
| 21 | 21 | * @return string |
| 22 | 22 | */ |
| 23 | - private static function getPool( $type = 'alnum') |
|
| 23 | + private static function getPool($type = 'alnum') |
|
| 24 | 24 | { |
| 25 | - switch ( $type ) { |
|
| 25 | + switch ($type) { |
|
| 26 | 26 | case 'alnum': |
| 27 | 27 | $pool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; |
| 28 | 28 | break; |