@@ -24,8 +24,8 @@ discard block |
||
| 24 | 24 | protected $defer = false; |
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | - * Publishes all the config file this package needs to function |
|
| 28 | - */ |
|
| 27 | + * Publishes all the config file this package needs to function |
|
| 28 | + */ |
|
| 29 | 29 | public function boot() |
| 30 | 30 | { |
| 31 | 31 | $config = realpath(__DIR__.'/../resources/config/paystack.php'); |
@@ -36,8 +36,8 @@ discard block |
||
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | - * Register the application services. |
|
| 40 | - */ |
|
| 39 | + * Register the application services. |
|
| 40 | + */ |
|
| 41 | 41 | public function register() |
| 42 | 42 | { |
| 43 | 43 | $this->app->bind('laravel-paystack', function () { |
@@ -48,9 +48,9 @@ discard block |
||
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | - * Get the services provided by the provider |
|
| 52 | - * @return array |
|
| 53 | - */ |
|
| 51 | + * Get the services provided by the provider |
|
| 52 | + * @return array |
|
| 53 | + */ |
|
| 54 | 54 | public function provides() |
| 55 | 55 | { |
| 56 | 56 | return ['laravel-paystack']; |
@@ -102,12 +102,11 @@ discard block |
||
| 102 | 102 | |
| 103 | 103 | |
| 104 | 104 | /** |
| 105 | - |
|
| 106 | - * Initiate a payment request to Paystack |
|
| 107 | - * Included the option to pass the payload to this method for situations |
|
| 108 | - * when the payload is built on the fly (not passed to the controller from a view) |
|
| 109 | - * @return Paystack |
|
| 110 | - */ |
|
| 105 | + * Initiate a payment request to Paystack |
|
| 106 | + * Included the option to pass the payload to this method for situations |
|
| 107 | + * when the payload is built on the fly (not passed to the controller from a view) |
|
| 108 | + * @return Paystack |
|
| 109 | + */ |
|
| 111 | 110 | |
| 112 | 111 | public function makePaymentRequest( $data = null ) |
| 113 | 112 | { |
@@ -181,11 +180,11 @@ discard block |
||
| 181 | 180 | } |
| 182 | 181 | |
| 183 | 182 | /** |
| 184 | - * Get the authorization callback response |
|
| 185 | - * In situations where Laravel serves as an backend for a detached UI, the api cannot redirect |
|
| 186 | - * and might need to take different actions based on the success or not of the transaction |
|
| 187 | - * @return array |
|
| 188 | - */ |
|
| 183 | + * Get the authorization callback response |
|
| 184 | + * In situations where Laravel serves as an backend for a detached UI, the api cannot redirect |
|
| 185 | + * and might need to take different actions based on the success or not of the transaction |
|
| 186 | + * @return array |
|
| 187 | + */ |
|
| 189 | 188 | public function getAuthorizationResponse($data) |
| 190 | 189 | { |
| 191 | 190 | $this->makePaymentRequest($data); |
@@ -600,10 +599,10 @@ discard block |
||
| 600 | 599 | } |
| 601 | 600 | |
| 602 | 601 | /** |
| 603 | - * Creates a subaccount to be used for split payments . Required params are business_name , settlement_bank , account_number , percentage_charge |
|
| 604 | - * |
|
| 605 | - * @return array |
|
| 606 | - */ |
|
| 602 | + * Creates a subaccount to be used for split payments . Required params are business_name , settlement_bank , account_number , percentage_charge |
|
| 603 | + * |
|
| 604 | + * @return array |
|
| 605 | + */ |
|
| 607 | 606 | |
| 608 | 607 | public function createSubAccount( $data = null ){ |
| 609 | 608 | |
@@ -628,10 +627,10 @@ discard block |
||
| 628 | 627 | } |
| 629 | 628 | |
| 630 | 629 | /** |
| 631 | - * Fetches details of a subaccount |
|
| 632 | - * @param subaccount code |
|
| 633 | - * @return array |
|
| 634 | - */ |
|
| 630 | + * Fetches details of a subaccount |
|
| 631 | + * @param subaccount code |
|
| 632 | + * @return array |
|
| 633 | + */ |
|
| 635 | 634 | public function fetchSubAccount($subaccount_code){ |
| 636 | 635 | |
| 637 | 636 | $this->setRequestOptions(); |
@@ -640,10 +639,10 @@ discard block |
||
| 640 | 639 | } |
| 641 | 640 | |
| 642 | 641 | /** |
| 643 | - * Lists all the subaccounts associated with the account |
|
| 644 | - * @param $per_page - Specifies how many records to retrieve per page , $page - SPecifies exactly what page to retrieve |
|
| 645 | - * @return array |
|
| 646 | - */ |
|
| 642 | + * Lists all the subaccounts associated with the account |
|
| 643 | + * @param $per_page - Specifies how many records to retrieve per page , $page - SPecifies exactly what page to retrieve |
|
| 644 | + * @return array |
|
| 645 | + */ |
|
| 647 | 646 | public function listSubAccounts($per_page,$page){ |
| 648 | 647 | |
| 649 | 648 | $this->setRequestOptions(); |