Some Changes Done

This commit is contained in:
devansh bawari 2020-11-18 18:49:53 +05:30
parent 1222f5d14a
commit e63525a6c2
1 changed files with 3 additions and 3 deletions

View File

@ -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') ?: '';
}
}