Skip to content

Commit

Permalink
check for hosted fields username and password
Browse files Browse the repository at this point in the history
  • Loading branch information
vegimcarkaxhija committed Sep 26, 2024
1 parent 192ab9d commit e29eb75
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Model/ConfigProvider/Method/Creditcards.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,22 @@ public function getPaymentFee($storeId = null)
return $paymentFee ? $paymentFee : false;
}

public function getHostedFieldsUsername()
{
return $this->scopeConfig->getValue(
'buckaroo_magento2/account/hosted_fields_username',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
);
}

public function getHostedFieldsPassword()
{
return $this->scopeConfig->getValue(
'buckaroo_magento2/account/hosted_fields_password',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
);
}

/**
* Add the active flag to the creditcard list. This is used in the checkout process.
*
Expand Down

0 comments on commit e29eb75

Please sign in to comment.