From 8203a3d9256167924ffb099ee3204a95d1efe521 Mon Sep 17 00:00:00 2001 From: Annegret Seufert Date: Mon, 6 Mar 2017 09:21:20 +0100 Subject: [PATCH] [SHPWR-198] remove BIC label and remote check for DE/AT IBANs --- Component/Model/SubModel/BankAccount.php | 10 +--------- .../payment_rpay_part/RatePAYDebitFormElements.tpl | 4 ++-- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/Component/Model/SubModel/BankAccount.php b/Component/Model/SubModel/BankAccount.php index b453e421..6ad45da2 100755 --- a/Component/Model/SubModel/BankAccount.php +++ b/Component/Model/SubModel/BankAccount.php @@ -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( diff --git a/Views/responsive/frontend/payment_rpay_part/RatePAYDebitFormElements.tpl b/Views/responsive/frontend/payment_rpay_part/RatePAYDebitFormElements.tpl index 76f2ca16..79c7a710 100755 --- a/Views/responsive/frontend/payment_rpay_part/RatePAYDebitFormElements.tpl +++ b/Views/responsive/frontend/payment_rpay_part/RatePAYDebitFormElements.tpl @@ -19,10 +19,10 @@ {/block} -{* Bankcode/ BIC *} +{* Bankcode *} {block name='ratepay_frontend_bankcode'}
- +
{/block}