Commit 68f47021 authored by Oleksandr Gotgelf's avatar Oleksandr Gotgelf
Browse files

CREF-332: Please remove BIC field in bank account template

parent 56fa60b9
......@@ -51,14 +51,6 @@ class DirectDebitRenderer extends AbstractTokenRenderer
return $this->getTokenDetails()['iban'];
}
/**
* @return string
*/
public function getBic(): string
{
return $this->getTokenDetails()['bic'];
}
/**
* @return string
*/
......
......@@ -95,7 +95,6 @@ class CrefoPayPaymentTokenFactory
$paymentToken->setTokenDetails(json_encode([
'accountHolder' => $paymentInstrument->getAccountHolder(),
'iban' => $paymentInstrument->getIban(),
'bic' => $paymentInstrument->getBic(),
]));
return $paymentToken;
......
......@@ -14,9 +14,6 @@ $confirmDeleteMessage = sprintf('%s?', __('Are you sure you want to delete this
<td data-th="<?= $block->escapeHtml(__('IBAN')) ?>" class="col paypal-account">
<?= $block->getIban() ?>
</td>
<td data-th="<?= $block->escapeHtml(__('BIC')) ?>" class="col paypal-account">
<?= $block->getBic() ?>
</td>
<td data-th="<?= $block->escapeHtml(__('Actions')) ?>" class="col actions">
<form
class="form"
......
......@@ -12,7 +12,6 @@ $tokens = $block->getPaymentTokens();
<th scope="col" class="col"><?= $block->escapeHtml(__('Direct Debit Account')) ?></th>
<th scope="col" class="col card-number"><?= /* @noEscape */ __('Account Holder') ?></th>
<th scope="col" class="col expire"><?= /* @noEscape */ __('IBAN') ?></th>
<th scope="col" class="col card-type"><?= /* @noEscape */ __('BIC') ?></th>
<th scope="col" class="col actions">&nbsp;</th>
</tr>
</thead>
......
......@@ -50,10 +50,6 @@ define([
message = $.mage.__('error.paymentInstrument.iban.field.invalid');
$('#directDebit_iban').text(message);
break;
case 'error.paymentInstrument.bic.field.invalid':
message = $.mage.__('error.paymentInstrument.bic.field.invalid');
$('#directDebit_bic').text(message);
break;
case 'error.paymentInstrument.accountHolder.field.invalid':
message = $.mage.__('error.paymentInstrument.accountHolder.field.invalid');
$('#creditCard_accountHolder').text(message);
......
......@@ -25,13 +25,6 @@ define([
return this.details.iban;
},
/**
* @returns {String}
*/
getBic: function () {
return this.details.bic;
},
/**
* Place order
*/
......
......@@ -76,15 +76,6 @@
<div generated="true" class="mage-error crefopay_hosted_fields_errors" id="directDebit_iban"></div>
</div>
</div>
<div class="field required">
<label class="label">
<span><!-- ko i18n: 'BIC'--><!-- /ko --></span>
</label>
<div class="control">
<input style = "border: 1px solid #c2c2c2; height: 32px; width: 400px" class="hosted-date-wrap" type="text" data-crefopay="paymentInstrument.bic" />
<div generated="true" class="mage-error crefopay_hosted_fields_errors" id="directDebit_bic"></div>
</div>
</div>
</fieldset>
<!-- ko if: (isVaultEnabled())-->
......
......@@ -27,10 +27,6 @@
<label class="label" data-bind="attr: {'for': getId()}">
<span translate="'iban'"></span>
<span text="getIban()"></span>
(
<span translate="'bic'"></span>:
<span text="getBic()"></span>
)
</label>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment