diff --git a/src/Traits/PayPalAPI.php b/src/Traits/PayPalAPI.php index 9ba5b123..6168b459 100644 --- a/src/Traits/PayPalAPI.php +++ b/src/Traits/PayPalAPI.php @@ -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; } diff --git a/src/Traits/PayPalHttpClient.php b/src/Traits/PayPalHttpClient.php index b5bd1c70..8c030a97 100644 --- a/src/Traits/PayPalHttpClient.php +++ b/src/Traits/PayPalHttpClient.php @@ -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); } /**