Skip to content

Commit

Permalink
Refactor API Parameters (implements #597).
Browse files Browse the repository at this point in the history
  • Loading branch information
srmklive committed Nov 22, 2023
1 parent 79560c5 commit 7829379
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/PayPalAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function setCurrentPage(int $page): \Srmklive\PayPal\Services\PayPal
*/
public function showTotals(bool $totals): \Srmklive\PayPal\Services\PayPal
{
$this->show_totals = $totals;
$this->show_totals = var_export($totals, true);

return $this;
}
Expand Down
2 changes: 2 additions & 0 deletions src/Traits/PayPalHttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ private function setDefaultValues()

$validateSSL = empty($this->validateSSL) ? true : $this->validateSSL;
$this->validateSSL = $validateSSL;

$this->show_totals = var_export($this->show_totals, true);
}

/**
Expand Down

0 comments on commit 7829379

Please sign in to comment.