Configuration for Braintree payment method.
Definition at line 15 of file Braintree.php.
◆ clearCredentials()
Clear credentials in Braintree configuration.
- Returns
- void
Definition at line 73 of file Braintree.php.
75 $this->_rootElement->find($this->fields[
'Merchant ID'])->setValue(
'');
76 $this->_rootElement->find($this->fields[
'Public Key'])->setValue(
'');
77 $this->_rootElement->find($this->fields[
'Private Key'])->setValue(
'');
◆ clickConfigureButton()
Click 'Configure' button to expand Braintree configuration.
- Returns
- void
Definition at line 95 of file Braintree.php.
97 $this->_rootElement->find($this->configureBraintreeButton)->click();
◆ disableBraintree()
Set 'Enable this Solution' = No.
- Returns
- void
Definition at line 119 of file Braintree.php.
121 $this->_rootElement->find(
122 $this->enablers[
'Enable this Solution'],
123 Locator::SELECTOR_CSS,
◆ enableBraintree()
Set 'Enable this Solution' = Yes.
- Returns
- void
Definition at line 105 of file Braintree.php.
107 $this->_rootElement->find(
108 $this->enablers[
'Enable this Solution'],
109 Locator::SELECTOR_CSS,
◆ getEnablerFields()
Return enabler fields selectors.
- Returns
- array
Definition at line 85 of file Braintree.php.
87 return $this->enablers;
◆ getFields()
Return credentials fields selectors.
- Returns
- array
Definition at line 51 of file Braintree.php.
◆ specifyCredentials()
Specify credentials in Braintree configuration.
- Returns
- void
Definition at line 61 of file Braintree.php.
63 $this->_rootElement->find($this->fields[
'Merchant ID'])->setValue(
'1');
64 $this->_rootElement->find($this->fields[
'Public Key'])->setValue(
'1');
65 $this->_rootElement->find($this->fields[
'Private Key'])->setValue(
'1');
The documentation for this class was generated from the following file:
- vendor/magento/magento2-base/dev/tests/functional/tests/app/Magento/Braintree/Test/Block/System/Config/Braintree.php