@@ -46,8 +46,8 @@ discard block |
||
46 | 46 | protected $client; |
47 | 47 | |
48 | 48 | /** |
49 | - * Publishes all the config file this package needs to function |
|
50 | - */ |
|
49 | + * Publishes all the config file this package needs to function |
|
50 | + */ |
|
51 | 51 | public function boot() |
52 | 52 | { |
53 | 53 | $config = realpath(__DIR__.'/../resources/config/paystack.php'); |
@@ -58,8 +58,8 @@ discard block |
||
58 | 58 | } |
59 | 59 | |
60 | 60 | /** |
61 | - * Register the application services. |
|
62 | - */ |
|
61 | + * Register the application services. |
|
62 | + */ |
|
63 | 63 | public function register() |
64 | 64 | { |
65 | 65 | $this->bootstrapConfig(); |
@@ -72,9 +72,9 @@ discard block |
||
72 | 72 | } |
73 | 73 | |
74 | 74 | /** |
75 | - * Get the services provided by the provider |
|
76 | - * @return array |
|
77 | - */ |
|
75 | + * Get the services provided by the provider |
|
76 | + * @return array |
|
77 | + */ |
|
78 | 78 | public function provides() |
79 | 79 | { |
80 | 80 | return ['laravel-paystack']; |
@@ -67,11 +67,11 @@ discard block |
||
67 | 67 | } |
68 | 68 | |
69 | 69 | /** |
70 | - * Initiate a payment request to Paystack |
|
71 | - * Included the option to pass the payload to this method for situations |
|
72 | - * when the payload is built on the fly (not passed to the controller from a view) |
|
73 | - * @return Paystack |
|
74 | - */ |
|
70 | + * Initiate a payment request to Paystack |
|
71 | + * Included the option to pass the payload to this method for situations |
|
72 | + * when the payload is built on the fly (not passed to the controller from a view) |
|
73 | + * @return Paystack |
|
74 | + */ |
|
75 | 75 | public function makePaymentRequest( $data = null) |
76 | 76 | { |
77 | 77 | if ( $data == null ) { |
@@ -144,11 +144,11 @@ discard block |
||
144 | 144 | } |
145 | 145 | |
146 | 146 | /** |
147 | - * Get the authorization callback response |
|
148 | - * In situations where Laravel serves as an backend for a detached UI, the api cannot redirect |
|
149 | - * and might need to take different actions based on the success (or not) of the transaction |
|
150 | - * @return array |
|
151 | - */ |
|
147 | + * Get the authorization callback response |
|
148 | + * In situations where Laravel serves as an backend for a detached UI, the api cannot redirect |
|
149 | + * and might need to take different actions based on the success (or not) of the transaction |
|
150 | + * @return array |
|
151 | + */ |
|
152 | 152 | public function getAuthorizationResponse($data = null) |
153 | 153 | { |
154 | 154 | $this->makePaymentRequest($data); |
@@ -552,10 +552,10 @@ discard block |
||
552 | 552 | } |
553 | 553 | |
554 | 554 | /** |
555 | - * Creates a subaccount to be used for split payments . Required params are business_name , settlement_bank , account_number , percentage_charge |
|
556 | - * |
|
557 | - * @return array |
|
558 | - */ |
|
555 | + * Creates a subaccount to be used for split payments . Required params are business_name , settlement_bank , account_number , percentage_charge |
|
556 | + * |
|
557 | + * @return array |
|
558 | + */ |
|
559 | 559 | |
560 | 560 | public function createSubAccount(){ |
561 | 561 | $data = [ |
@@ -576,10 +576,10 @@ discard block |
||
576 | 576 | } |
577 | 577 | |
578 | 578 | /** |
579 | - * Fetches details of a subaccount |
|
580 | - * @param subaccount code |
|
581 | - * @return array |
|
582 | - */ |
|
579 | + * Fetches details of a subaccount |
|
580 | + * @param subaccount code |
|
581 | + * @return array |
|
582 | + */ |
|
583 | 583 | public function fetchSubAccount($subaccount_code){ |
584 | 584 | |
585 | 585 | $this->setRequestOptions(); |
@@ -588,10 +588,10 @@ discard block |
||
588 | 588 | } |
589 | 589 | |
590 | 590 | /** |
591 | - * Lists all the subaccounts associated with the account |
|
592 | - * @param $per_page - Specifies how many records to retrieve per page , $page - SPecifies exactly what page to retrieve |
|
593 | - * @return array |
|
594 | - */ |
|
591 | + * Lists all the subaccounts associated with the account |
|
592 | + * @param $per_page - Specifies how many records to retrieve per page , $page - SPecifies exactly what page to retrieve |
|
593 | + * @return array |
|
594 | + */ |
|
595 | 595 | public function listSubAccounts($per_page,$page){ |
596 | 596 | |
597 | 597 | $this->setRequestOptions(); |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | if (! function_exists("paystack")) |
4 | 4 | { |
5 | - function paystack() { |
|
5 | + function paystack() { |
|
6 | 6 | |
7 | - return app()->make('laravel-paystack'); |
|
8 | - } |
|
7 | + return app()->make('laravel-paystack'); |
|
8 | + } |
|
9 | 9 | } |
10 | 10 | \ No newline at end of file |
@@ -15,8 +15,8 @@ |
||
15 | 15 | |
16 | 16 | class PaymentVerificationFailedException extends Exception |
17 | 17 | { |
18 | - public function __construct ($message = "") |
|
19 | - { |
|
20 | - parent::__construct(($message ? $message : "Payment Verification Failed."), 400); |
|
21 | - } |
|
18 | + public function __construct ($message = "") |
|
19 | + { |
|
20 | + parent::__construct(($message ? $message : "Payment Verification Failed."), 400); |
|
21 | + } |
|
22 | 22 | } |
@@ -15,8 +15,8 @@ |
||
15 | 15 | |
16 | 16 | class IsNullException extends Exception |
17 | 17 | { |
18 | - public function __construct ($message = "") |
|
19 | - { |
|
20 | - parent::__construct(($message ? $message : "Bad method call."), 400); |
|
21 | - } |
|
18 | + public function __construct ($message = "") |
|
19 | + { |
|
20 | + parent::__construct(($message ? $message : "Bad method call."), 400); |
|
21 | + } |
|
22 | 22 | } |