@@ -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); |
@@ -589,10 +588,10 @@ discard block |
||
| 589 | 588 | } |
| 590 | 589 | |
| 591 | 590 | /** |
| 592 | - * Creates a subaccount to be used for split payments . Required params are business_name , settlement_bank , account_number , percentage_charge |
|
| 593 | - * |
|
| 594 | - * @return array |
|
| 595 | - */ |
|
| 591 | + * Creates a subaccount to be used for split payments . Required params are business_name , settlement_bank , account_number , percentage_charge |
|
| 592 | + * |
|
| 593 | + * @return array |
|
| 594 | + */ |
|
| 596 | 595 | |
| 597 | 596 | public function createSubAccount(){ |
| 598 | 597 | $data = [ |
@@ -613,10 +612,10 @@ discard block |
||
| 613 | 612 | } |
| 614 | 613 | |
| 615 | 614 | /** |
| 616 | - * Fetches details of a subaccount |
|
| 617 | - * @param subaccount code |
|
| 618 | - * @return array |
|
| 619 | - */ |
|
| 615 | + * Fetches details of a subaccount |
|
| 616 | + * @param subaccount code |
|
| 617 | + * @return array |
|
| 618 | + */ |
|
| 620 | 619 | public function fetchSubAccount($subaccount_code){ |
| 621 | 620 | |
| 622 | 621 | $this->setRequestOptions(); |
@@ -625,10 +624,10 @@ discard block |
||
| 625 | 624 | } |
| 626 | 625 | |
| 627 | 626 | /** |
| 628 | - * Lists all the subaccounts associated with the account |
|
| 629 | - * @param $per_page - Specifies how many records to retrieve per page , $page - SPecifies exactly what page to retrieve |
|
| 630 | - * @return array |
|
| 631 | - */ |
|
| 627 | + * Lists all the subaccounts associated with the account |
|
| 628 | + * @param $per_page - Specifies how many records to retrieve per page , $page - SPecifies exactly what page to retrieve |
|
| 629 | + * @return array |
|
| 630 | + */ |
|
| 632 | 631 | public function listSubAccounts($per_page,$page){ |
| 633 | 632 | |
| 634 | 633 | $this->setRequestOptions(); |