From 7829379179653bc68df2323f36fc3860e7152a45 Mon Sep 17 00:00:00 2001 From: Raza Mehdi Date: Wed, 22 Nov 2023 17:04:34 +0500 Subject: [PATCH] Refactor API Parameters (implements #597). --- src/Traits/PayPalAPI.php | 2 +- src/Traits/PayPalHttpClient.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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); } /**