Skip to content

Commit

Permalink
[SHPWR-198] remove BIC label and remote check for DE/AT IBANs
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnegretS committed Mar 6, 2017
1 parent d97e08b commit 8203a3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
10 changes: 1 addition & 9 deletions Component/Model/SubModel/BankAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,20 +107,12 @@ public function setBankCode($bankCode)
public function toArray()
{

if (false !== strpos(strtolower($this->getBankAccount()), 'de')) {
if (ctype_alpha(substr($this->getBankAccount(), 0 ,2))) {

return array(
'owner' => $this->getOwner(),
'iban' => $this->getBankAccount()
);

} elseif(false !== strpos(strtolower($this->getBankAccount()), 'at')) {

return array(
'owner' => $this->getOwner(),
'iban' => $this->getBankAccount()
);

}

return array(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
</div>
{/block}

{* Bankcode/ BIC *}
{* Bankcode *}
{block name='ratepay_frontend_bankcode'}
<div class="register--accountnumber ratepay_debit_bankcode">
<label for="ratepay_debit_accountnumber" class="birthday--label">{s namespace=RatePAY name=bankCode}BIC / Bankleitzahl{/s}*</label>
<label for="ratepay_debit_accountnumber" class="birthday--label">{s namespace=RatePAY name=bankCode}Bankleitzahl{/s}*</label>
<input id="ratepay_debit_bankcode" name="ratepay_debit_bankcode" class="register--field is--required" type="text" required="required" aria-required="true" placeholder="{s namespace=RatePAY name=bankCode}BIC / Bankleitzahl{/s}*" value="{if $smarty.session.Shopware.RatePAY.bankdata.account}{$smarty.session.Shopware.RatePAY.bankdata.bankcode|escape}{/if}">
</div>
{/block}
Expand Down

0 comments on commit 8203a3d

Please sign in to comment.