From e63525a6c233c7dc94fe9f10fcbcda8964963af0 Mon Sep 17 00:00:00 2001 From: devansh bawari Date: Wed, 18 Nov 2020 18:49:53 +0530 Subject: [PATCH] Some Changes Done --- packages/Webkul/Paypal/src/Payment/SmartButton.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/Webkul/Paypal/src/Payment/SmartButton.php b/packages/Webkul/Paypal/src/Payment/SmartButton.php index 16b1575b9..c2315cc4f 100644 --- a/packages/Webkul/Paypal/src/Payment/SmartButton.php +++ b/packages/Webkul/Paypal/src/Payment/SmartButton.php @@ -62,7 +62,7 @@ class SmartButton extends Paypal */ protected function environment() { - $isSandbox = core()->getConfigData('sales.paymentmethods.paypal_smart_button.sandbox') ?: false; + $isSandbox = $this->getConfigData('sandbox') ?: false; if ($isSandbox) { return new SandboxEnvironment($this->clientId, $this->clientSecret); @@ -76,8 +76,8 @@ class SmartButton extends Paypal */ protected function initialize() { - $this->clientId = core()->getConfigData('sales.paymentmethods.paypal_smart_button.client_id') ?: ''; + $this->clientId = $this->getConfigData('client_id') ?: ''; - $this->clientSecret = core()->getConfigData('sales.paymentmethods.paypal_smart_button.client_secret') ?: ''; + $this->clientSecret = $this->getConfigData('client_secret') ?: ''; } } \ No newline at end of file