Skip to content
This repository was archived by the owner on Mar 6, 2022. It is now read-only.

Commit

Permalink
Update Transactions.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Wisdom Anthony Ebong authored Aug 2, 2019
1 parent f3d1e35 commit da5e5ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Api/Transactions.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function list(array $parameters = []): Collection
*/
public function charge(array $parameters)
{
$this->validator->setRequiredParameters([]);
$this->validator->setRequiredParameters(['authorization_code', 'amount', 'email']);

if ($this->validator->checkParameters($parameters)) {
if (isset($parameters['queue']) && $this->validator->contains(['queue' => (string) $parameters['queue']], self::BOOLEANS)) {
Expand Down

0 comments on commit da5e5ea

Please sign in to comment.