Checkout payment method vault block.
Definition at line 15 of file Vault.php.
◆ isSavedCreditCardPresent()
| isSavedCreditCardPresent |
( |
|
$creditCard | ) |
|
Verify if saved credit card is present as a payment option.
- Parameters
-
- Returns
- bool
Definition at line 62 of file Vault.php.
64 $paymentLabelSelector = sprintf($this->creditCardSelector, $creditCard);
65 return $this->_rootElement->find($paymentLabelSelector, Locator::SELECTOR_XPATH)->isVisible();
◆ isVaultVisible()
| isVaultVisible |
( |
|
$paymentMethod | ) |
|
Check if Save credit card check box is visible.
- Parameters
-
- Returns
- bool
Definition at line 50 of file Vault.php.
52 $saveCard = sprintf($this->vaultCheckbox, $paymentMethod);
53 return $this->_rootElement->find($saveCard, Locator::SELECTOR_CSS,
'checkbox')->isVisible();
◆ saveCreditCard()
| saveCreditCard |
( |
|
$paymentMethod, |
|
|
|
$creditCardSave |
|
) |
| |
Save credit card.
- Parameters
-
| string | $paymentMethod | |
| string | $creditCardSave | |
- Returns
- void
Definition at line 38 of file Vault.php.
40 $saveCard = sprintf($this->vaultCheckbox, $paymentMethod);
41 $this->_rootElement->find($saveCard, Locator::SELECTOR_CSS,
'checkbox')->setValue($creditCardSave);
◆ $vaultCheckbox
| $vaultCheckbox = '#%s_enable_vault' |
|
protected |
The documentation for this class was generated from the following file:
- vendor/magento/magento2-base/dev/tests/functional/tests/app/Magento/Vault/Test/Block/Onepage/Payment/Method/Vault.php