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

Commit

Permalink
Merge pull request #2 from webong/patch-1
Browse files Browse the repository at this point in the history
Update Transactions.php
  • Loading branch information
bosunski authored Oct 16, 2019
2 parents 000cf49 + da5e5ea commit 230543d
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 230543d

Please sign in to comment.