Skip to content

Added methods to handle Split payments #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Oct 23, 2017

Conversation

sayopaul
Copy link
Contributor

@sayopaul sayopaul commented Sep 7, 2017

Added some useful methods for people looking to use the split payments feature that Paystack now provides

Copy link
Owner

@unicodeveloper unicodeveloper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please effect changes. Thanks.

src/Paystack.php Outdated
@@ -387,6 +391,7 @@ public function createCustomer()
];

$this->setRequestOptions();
$this->setHttpResponse('/customer', 'POST', $data);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this code added here?

src/Paystack.php Outdated
];

$this->setRequestOptions();
array_filter($data);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove array_filter from here and just call it line 613 like so:

 return $this->setHttpResponse('/subaccount', 'POST', array_filter($data))->getResponse();

src/Paystack.php Outdated
*/
public function listSubAccounts($per_page,$page){


Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason why we have some much whitespace here?

src/Paystack.php Outdated
];

$this->setRequestOptions();
array_filter($data);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please apply same logic here as mentioned above. Thanks!

@unicodeveloper unicodeveloper merged commit 2aebd96 into unicodeveloper:master Oct 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants